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