close
Warning:
Can't synchronize with repository "(default)" (Unsupported version control system "svn": /usr/lib/python2.7/dist-packages/libsvn/_core.so: cannot map zero-fill pages: Cannot allocate memory). Look in the Trac log for more information.
- Timestamp:
-
Oct 30, 2008, 11:23:28 PM (17 years ago)
- Author:
-
jazz
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v13
|
v14
|
|
6 | 6 | * [註二] 由於安裝之後,Etch 預設還是用 Python2.4,很難改變預設 Runtime,因此網路上建議直接用 tarball 安裝。另一個解法就是升級到 lenny。 |
7 | 7 | {{{ |
| 8 | ~$ echo "deb http://free.nchc.org.tw/debian/ lenny main contrib non-free" > /tmp/lenny.list |
| 9 | ~$ sudo mv /tmp/lenny.list /etc/apt/sources.list.d/ |
| 10 | ~$ sudo apt-get update |
8 | 11 | ~$ sudo apt-get -t lenny upgrade |
9 | 12 | ~$ sudo apt-get -t lenny dist-upgrade |
… |
… |
|
23 | 26 | {{{ |
24 | 27 | ~$ python |
| 28 | Python 2.5.2 (r252:60911, Sep 29 2008, 21:15:13) |
| 29 | [GCC 4.3.2] on linux2 |
| 30 | Type "help", "copyright", "credits" or "license" for more information. |
25 | 31 | >>> import orbited |
| 32 | >>> [Ctrl+D] |
26 | 33 | }}} |
27 | 34 | * 如果沒有錯誤訊息就可以繼續跑測試了。參考[http://cometdaily.com/2008/10/10/scalable-real-time-web-architecture-part-2-a-live-graph-with-orbited-morbidq-and-jsio/ Scalable Real-Time Web Architecture, Part 2: A Live Graph with Orbited, MorbidQ, and js.io],我們在 Lenny 的環境下,成功重現這個範例。 |
28 | 35 | {{{ |
29 | | ~$ wget |
| 36 | ~$ sudo easy_install stompservice |
| 37 | ~$ wget http://cometdaily.com/wp-content/uploads/2008/10/graph_demo.tgz |
| 38 | ~$ tar zxvf graph_demo.tgz |
| 39 | ~$ cd graph_demo/ |
| 40 | ~/graph_demo$ for i in `find . -type f`; do sed "s#localhost#${NEW_IP_ADDRESS}#g" $i > $i.bak; mv $i.bak $i; done |
| 41 | ~/graph_demo$ orbited --config graph.cfg |
| 42 | 10/30/08 16:08:02:525 INFO orbited.start proxy protocol active |
| 43 | 10/30/08 16:08:02:525 INFO orbited.start Listening http@9000 |
| 44 | 10/30/08 16:08:02:527 INFO orbited.start Listening stomp@61613 |
30 | 45 | }}} |