Installation and use of Memcacheq

Source: Internet
Author: User

Memcacheq is a memcachedb-based Message Queuing server. Website address: http://memcachedb.org/memcacheq/

Characteristics:

1. Simple and easy to use.

2. Fast processing.

3. You can create more than one queue.

4. High concurrency performance.

5. Compatible with Memcache protocol.

Memcacheq relies on Berkeley DB and libevent (1.4 or higher).

Berkeley db is used to persist storage queue data to avoid data loss when the Memcacheq crashes or the server freezes.

1. Install Berkeley DB

Download address: http://www.oracle.com/technetwork/database/database-technologies/berkeleydb/downloads/index.html? Sssourcesiteid=ocomcn

$tar xvzf db-6.0.20.tar.gz  
$cd db-6.0.20/  
$cd build_unix/  
$. /dist/configure  
$make  
$sudo make install

2. Install Libevent

Download Address: http://libevent.org/

$tar xvzf libevent-2.0.21-stable.tar.gz  
$cd libevent-2.0.21-stable  
$./configure  
$make  
$sudo make Install

Add two lines to/etc/ld.so.conf

/usr/local/lib  
/usr/local/berkeleydb.6.0/lib

Finish new Run command refresh

sudo ldconfig

3. Install Memcacheq

This column more highlights: http://www.bianceng.cnhttp://www.bianceng.cn/Servers/zs/

Download Address: Https://code.google.com/p/memcacheq/downloads/list

Create Libdb.so Softlink

Ln-s/usr/local/berkeleydb.6.0/lib/libdb-6.0.so/usr/lib/libdb.so

$tar xvzf memcacheq-0.2.x.tar.gz  
$cd memcacheq-0.2.x  
$./configure--with-bdb=/usr/local/berkeleydb.6.0-- With--libevent=/usr/lib--enable-threads  
$make  
$sudo make install

--with-bdb=/usr/local/berkeleydb.6.0 Specify Berkeley DB path

--with--libevent=/usr/lib Specify Libevent Path

--enable-threads Open Multithreading

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.