欢迎访问 生活随笔!

生活随笔

当前位置: 首页 >

ubuntu安装操作HttpSQS高速队列

发布时间:2023/12/20 52 豆豆
生活随笔 收集整理的这篇文章主要介绍了 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操作系统上编译Tokyo cabinet,请使用./configure --enable-off64代替./configure,可以使数据库文件突破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/

转载于:https://www.cnblogs.com/xiongwei89/archive/2013/03/26/2982371.html

总结

以上是生活随笔为你收集整理的ubuntu安装操作HttpSQS高速队列的全部内容,希望文章能够帮你解决所遇到的问题。

如果觉得生活随笔网站内容还不错,欢迎将生活随笔推荐给好友。