Changes between Version 13 and Version 14 of jazz/Comet/08-10-30


Ignore:
Timestamp:
Oct 30, 2008, 11:23:28 PM (16 years ago)
Author:
jazz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • jazz/Comet/08-10-30

    v13 v14  
    66     * [註二] 由於安裝之後,Etch 預設還是用 Python2.4,很難改變預設 Runtime,因此網路上建議直接用 tarball 安裝。另一個解法就是升級到 lenny。
    77{{{
     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
    811~$ sudo apt-get -t lenny upgrade
    912~$ sudo apt-get -t lenny dist-upgrade
     
    2326{{{
    2427~$ python
     28Python 2.5.2 (r252:60911, Sep 29 2008, 21:15:13)
     29[GCC 4.3.2] on linux2
     30Type "help", "copyright", "credits" or "license" for more information.
    2531>>> import orbited
     32>>> [Ctrl+D]
    2633}}}
    2734 * 如果沒有錯誤訊息就可以繼續跑測試了。參考[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 的環境下,成功重現這個範例。
    2835{{{
    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
     4210/30/08 16:08:02:525 INFO   orbited.start      proxy protocol active
     4310/30/08 16:08:02:525 INFO   orbited.start      Listening http@9000
     4410/30/08 16:08:02:527 INFO   orbited.start      Listening stomp@61613
    3045}}}