httpsqs安装配置

yum install bzip2-devel -y

yum install zlib-devel -y

yum install glibc.i686 -y

ulimit -SHn 65535

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 ..

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 ..

tar zxvf httpsqs-1.7.tar.gz

cd httpsqs-1.7/

make

make install

cd ..

ulimit -SHn 65535 

httpsqs -d -p 1218 -x /data0/queue    端口1218  文件路径/data0/queue

更改指定队列的最大队列数量:

  默认的最大队列长度(100万条):1000000

  HTTP GET 协议(以curl命令为例):

curl "http://127.0.0.1:9218/?name=task-data&opt=maxqueue&num=1000000000&auth=mypass123"

  num >=10 并且 <= 1000000000

  如果更改最大队列数量成功,则返回:

HTTPSQS_MAXQUEUE_OK

你可能感兴趣的:(httpsqs安装配置)