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.gztarzxvf libevent-2.0.12-stable.tar.gzcdlibevent-2.0.12-stable/./configure -- prefix =/usr/local/libevent-2.0.12-stable/makemakeinstall
2. Download tokyocabinet-1.4.47.tar.gz, compile and install
Wget http://httpsqs.googlecode.com/files/tokyocabinet-1.4.47.tar.gztarzxvf /. /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/makemakeinstall
3. Download httpsqs-1.7.tar.gz and compile and install it.
Wget http://httpsqs.googlecode.com/files/httpsqs-1.7.tar.gztarzxvf httpsqs-1.7.tar.gzcdhttpsqs-1.7/makemakeinstall
Ii. Problems arising during installation
1. event. h file appears when compiling httpsqs. solution:
Yum installlibevent 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