Memcache setup and description

Source: Internet
Author: User

1 because memcache uses the libevent library, so before installing memcache to install this library, the installation is very simple wget http://www.monkey.org /~ Provos/libevent-1.4.12-stable.tar.gz

./Configure -- prefix =/usr/local

Make & make install

Use LS-Al/usr/local/lib | grep libevent to check whether the installation is successful.

2. Install memcache

Wget http://www.danga.com/memcached/dist/memcached1.4.0.tar.gzhttp://www.danga.com/memcached/dist/memcached-1.4.0.tar.gz

./Configure -- prefix =/usr/local

Make & make install


3. Start memcache

First, we need to know the working principle of memcache. It mainly allocates a certain amount of memory to the specified port and IP address to quickly process the client application and thus speed up the server, at the same time, there are many mamcache clusters on the Internet, but it is not done by the server, but by the client. The specific code has nothing to do with O & M.

/Usr/local/bin/memcached-D-M 100 192.168.0.200-P 6552 allocate 6552 MB of memory to processes from 192.168.0.200 access port.

4. Verify that the service has been started and can handle the problem.

Telnet 192.168.0.200 6552 can be used for telnet, and set, get, and other commands can be used for normal operation.


This article is from the "Zhanghe" blog, please be sure to keep this source http://9206668.blog.51cto.com/9196668/1532549

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.