First, the resources download
You must first install the libevent before installing memcached
Download the installation Kits libevent-1.4.14b-stable.tar.gz and memecached-1.4.22.tar.gz on Libevent and Memcached's website respectively
Unzip the two installation packages into the installation directory (the installation directory is up to you)
Second, installation libevent
1, enter the Libevent installation directory
2. Execute the following command to install
./configure
Make
Make install
Note: How to make errors requires the installation of missing items. See the error after make on the specific situation
Third, installation memcached
Go to its installation directory and execute the command.
./configure
Make
Make install
Four, start memcached (online There are many ways to start, the following is my verification success)
1. Start
./memcached-d-C 10240-m 1024-u Root
2. View the running status
Ps-ef | grep memcached
V. Connecting memcatched
1. The CentOS machine in the lab may not have Telnet installed, so it is necessary to install Telnet before connecting to memcatched
Telnet installation Reference http://blog.csdn.net/mi_mang/article/details/4605787
2. Connect to Memcated
telnet localhost 11211
If the success will be as shown in the state
At this point, you can perform the basic command operation of Memcached.
Vi. Closure of memcached
Kill [Service number]//service number viewed from the running state
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Memcache installation and use