Linux Compile and install memcached service Instance Tutorial

Source: Internet
Author: User

share the steps to compile and install memcached services under Linux, and take a look at them.

System: Ubuntu 13.10
First step: Install Libevent-dev
$aptitude Search Libevent-dev
$aptitude Install Libevent-dev

Step two: Download memcached and install (www.jbxue.com)
Website address: http://memcached.org/
$wget-C http://www.memcached.org/files/memcached-1.4.17.tar.gz
$tar-ZXVF memcached-1.4.17.tar.gz
$CD memcached-1.4.17
$./configure--prefix=/usr/local/memcached
$ make
$ sudo make install

Step three: Start memcached
$CD/usr/local/memcached
$./memcached-d-M 1024-u root-l 127.0.0.1-p 11211-p/tmp/memcached.pid

Step three: Check if the installation is successful
$ps-aux | grep memcache #法1
$netstat-antu | grep 11211 #法2
$telnet localhost 11211 #法3

Reference:
Ubuntu under Memcache installation method

Linux memcache installation configuration tutorial
Common command
Start memcached service
#./memcached-d-M 1024-u root-l 127.0.0.1-p 11211-p/tmp/memcache D.pid
Close memcached service
#kill ' cat/tmp/memcached.pid '

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.