Use HTTPSQS in CenOS6.4 to build a Queue Server

Source: Internet
Author: User

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!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.