1. #分词安装:  
  2. cd  /usr/local/  
  3. wget http://httpcws.googlecode.com/files/httpcws-1.0.0-x86_64-bin.tar.gz  
  4. tar zxvf httpcws-1.0.0-x86_64-bin.tar.gz  
  5. rm -f httpcws-1.0.0-x86_64-bin.tar.gz  
  6. mv httpcws-1.0.0-x86_64-bin/ httpcws  
  7. cd httpcws/  
  8. ulimit -SHn 65535  
  9. #/usr/local/httpcws/httpcws -d -x /usr/local/httpcws/dict/  
  10. echo '/usr/local/httpcws/httpcws -d -x /usr/local/httpcws/dict/' >>/etc/rc.local  
  11. ##引用  
  12. ##http://code.google.com/p/httpcws/   
  13. #队列安装  
  14. cd  ~  
  15. ulimit -SHn 65535   
  16. wget http://httpsqs.googlecode.com/files/libevent-2.0.12-stable.tar.gz  
  17. tar zxvf libevent-2.0.12-stable.tar.gz  
  18. cd libevent-2.0.12-stable/  
  19. ./configure --prefix=/usr/local/libevent-2.0.12-stable/  
  20. make  
  21. make install  
  22. cd ~  
  23.    
  24. wget http://httpsqs.googlecode.com/files/tokyocabinet-1.4.47.tar.gz  
  25. tar zxvf tokyocabinet-1.4.47.tar.gz  
  26. cd tokyocabinet-1.4.47/  
  27. ./configure --prefix=/usr/local/tokyocabinet-1.4.47/  
  28. make  
  29. make install  
  30. cd  ~  
  31.    
  32. wget http://httpsqs.googlecode.com/files/httpsqs-1.7.tar.gz  
  33. tar zxvf httpsqs-1.7.tar.gz  
  34. cd httpsqs-1.7/  
  35. make  
  36. make install  
  37.    
  38. cd  ~  
  39. ##httpsqs -d -p 1218 -x /data/queue/  
  40. echo ' httpsqs -d -p 1218 -x /data/queue/' >>/etc/rc.local  
  41.    
  42. ##启动服务  
  43. httpsqs -d -p 1218 -x /data/queue/ &  
  44. /usr/local/httpcws/httpcws -d -x /usr/local/httpcws/dict/ &  
  45. ##引用:  
  46. ## http://code.google.com/p/httpsqs/