Changes between Version 12 and Version 13 of jazz/Comet/08-10-30
- Timestamp:
- Oct 30, 2008, 11:12:35 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
jazz/Comet/08-10-30
v12 v13 5 5 * [註一] ''用 Python 2.4 在執行 orbited 時會遇到一些 Runtime Error~'' 6 6 * [註二] 由於安裝之後,Etch 預設還是用 Python2.4,很難改變預設 Runtime,因此網路上建議直接用 tarball 安裝。另一個解法就是升級到 lenny。 7 {{{ 8 ~$ sudo apt-get -t lenny upgrade 9 ~$ sudo apt-get -t lenny dist-upgrade 10 }}} 7 11 * python-setuptools - Python Distutils Enhancements 8 12 * python-twisted - Event-based framework for internet applications (transitional package) … … 10 14 * 安裝 Orbited 相關套件 11 15 {{{ 12 ~$ sudo apt-get install python 2.5 python-setuptools python-twisted python-simplejson16 ~$ sudo apt-get install python-setuptools python-twisted python-simplejson 13 17 ~$ wget http://pypi.python.org/packages/source/o/orbited/orbited-0.7.0.tar.gz 14 18 ~$ tar zxvf orbited-0.7.0.tar.gz 15 ~$ sudo easy_install -2.5orbited-0.7.019 ~$ sudo easy_install orbited-0.7.0 16 20 ~$ sudo cp orbited-0.7.0/orbited.cfg /etc/ 17 21 }}} 18 22 * 測試 Orbited 19 23 {{{ 20 ~$ python 2.524 ~$ python 21 25 >>> import orbited 22 26 }}} 23 * 如果沒有錯誤訊息就可以繼續跑測試了。 27 * 如果沒有錯誤訊息就可以繼續跑測試了。參考[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 的環境下,成功重現這個範例。 24 28 {{{ 25 ~$ orbited29 ~$ wget 26 30 }}}