ubuntu安装操作HttpSQS高速队列
HTTPSQS安裝
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/
#注:在32位Linux操作系統(tǒng)上編譯Tokyo cabinet,請使用./configure --enable-off64代替./configure,可以使數(shù)據(jù)庫文件突破2GB的限制。
#./configure --enable-off64 --prefix=/usr/local/tokyocabinet-1.4.47/
#這里我遇到個錯誤configure: error: bzlib.h is required解決方式是升級安裝:apt-get install libbz2-dev
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 -h 如果有提示說明安裝完成
瀏覽器測試:
加入隊列
http://127.0.0.1:1218/?name=xiongwei&opt=put&data=123&auth=mypass123
獲取隊列
http://127.0.0.1:1218/?name=xiongwei&opt=get&auth=mypass123
參考文檔:http://blog.s135.com/httpsqs/
轉(zhuǎn)載于:https://www.cnblogs.com/xiongwei89/archive/2013/03/26/2982371.html
總結(jié)
以上是生活随笔為你收集整理的ubuntu安装操作HttpSQS高速队列的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
 
                            
                        - 上一篇: 最棒的PHP后台管理系统
- 下一篇: 鸟哥的linux私房菜 简书,《鸟哥的l
