CenOS 6.4でHTTPSQSを使用してキューサーバを構築


一、インストールプロセス   1、libevent-2.0.12-stableをダウンロードし、インストールをコンパイルする
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

   2、tokyocabinet-1.4.47.tar.gzをダウンロードし、インストールをコンパイルする
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/
make
make install

   3、httpsqs-1.7.tar.gzをダウンロードし、インストールをコンパイルする
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

二、インストール中に発生した関連問題
   1、httpsqsをコンパイルする時event.hファイルが現れて、解決方法:
yum install libevent libevent-devel

三、httsqsサービスを起動し、/etc/rc.localに加入する.
vim /etc/rc.local

   次のように追加します.
httpsqs -d -p 1218 -x /opt/httpsqs/data

四、テスト(インストールに成功したかどうかを確認する)   ブラウザで次の操作を行います.   http://localhost:1218/?name=test&opt=put&data=テスト       --キューにデータを追加   http://localhost:1218/?name=test&opt=status                --キューのステータスの表示   http://localhost:1218/?name=test&opt=get                --キューからデータを取得
本文は“ネットに従って互いに接続します”のブログから出て、転載をお断りします!