- #分词安装:
- cd /usr/local/
- wget http://httpcws.googlecode.com/files/httpcws-1.0.0-x86_64-bin.tar.gz
- tar zxvf httpcws-1.0.0-x86_64-bin.tar.gz
- rm -f httpcws-1.0.0-x86_64-bin.tar.gz
- mv httpcws-1.0.0-x86_64-bin/ httpcws
- cd httpcws/
- ulimit -SHn 65535
- #/usr/local/httpcws/httpcws -d -x /usr/local/httpcws/dict/
- echo '/usr/local/httpcws/httpcws -d -x /usr/local/httpcws/dict/' >>/etc/rc.local
- ##引用
- ##http://code.google.com/p/httpcws/
- #队列安装
- cd ~
- ulimit -SHn 65535
- wget http://httpsqs.googlecode.com/files/libevent-2.0.12-stable.tar.gz
- tar zxvf libevent-2.0.12-stable.tar.gz
- cd libevent-2.0.12-stable/
- ./configure --prefix=/usr/local/libevent-2.0.12-stable/
- make
- make install
- cd ~
-
- wget http://httpsqs.googlecode.com/files/tokyocabinet-1.4.47.tar.gz
- tar zxvf tokyocabinet-1.4.47.tar.gz
- cd tokyocabinet-1.4.47/
- ./configure --prefix=/usr/local/tokyocabinet-1.4.47/
- make
- make install
- cd ~
-
- wget http://httpsqs.googlecode.com/files/httpsqs-1.7.tar.gz
- tar zxvf httpsqs-1.7.tar.gz
- cd httpsqs-1.7/
- make
- make install
-
- cd ~
- ##httpsqs -d -p 1218 -x /data/queue/
- echo ' httpsqs -d -p 1218 -x /data/queue/' >>/etc/rc.local
-
- ##启动服务
- httpsqs -d -p 1218 -x /data/queue/ &
- /usr/local/httpcws/httpcws -d -x /usr/local/httpcws/dict/ &
- ##引用:
- ## http://code.google.com/p/httpsqs/
转载于:https://blog.51cto.com/tianzheng/884744