I. Installation Process
1. Download libevent-2.0.12-stable and compile and install
wget http://httpsqs.googlecode.com/files/libevent-2.0.12-stable.tar.gztar zxvf libevent-2.0.12-stable.tar.gzcd libevent-2.0.12-stable/./configure --prefix=/usr/local/libevent-2.0.12-stable/makemake install
2. Download tokyocabinet-1.4.47.tar.gz, compile and install
Wget http://httpsqs.googlecode.com/files/tokyocabinet-1.4.47.tar.gztar zxvf tokyocabinet-1.4.47.tar.gzcd tokyocabinet-1.4.47 /. /configure -- prefix =/usr/local/tokyocabinet-1.4.47/# Note: Compile Tokyo cabinet on a 32-bit Linux operating system, please use. /configure -- replace the enable-off64. /configure, which can break the limit of 2 GB for database files. #./Configure -- enable-off64 -- prefix =/usr/local/tokyocabinet-1.4.47/makemake install
3. Download httpsqs-1.7.tar.gz and compile and install it.
wget http://httpsqs.googlecode.com/files/httpsqs-1.7.tar.gztar zxvf httpsqs-1.7.tar.gzcd httpsqs-1.7/makemake install
Ii. Problems arising during installation
1. event. h file appears when compiling httpsqs. solution:
yum install libevent libevent-devel
3. Start the httsqs service and add it to/etc/rc. local:
vim /etc/rc.local
Add the following content:
httpsqs -d -p 1218 -x /opt/httpsqs/data
Iv. Test (check whether the installation is successful)
Perform the following operations in the browser:
Http: // localhost: 1218 /? Name = test & opt = put & data = test -- add a data entry to the queue
Http: // localhost: 1218 /? Name = test & opt = status -- view the queue status
Http: // localhost: 1218 /? Name = test & opt = get -- get a piece of data from the queue
This article is from the "decode love" blog and will not be reproduced!