1.yum install libevent-devel
2.tar -zxvf memcached-1.x.x.tar.gz cd memcached-1.x.x
3.cd memcached-1.x.x
4../configure --prefix=/usr/local/memcached-1.4.5
5.make && make test
6.make install
7.memcached -d -m 300 -u root -l 192.168.0.244 -p 13800 -c 512 -P /usr/local/memcached-1.4.5/pid_files/memcached.pid
8.测试Memcached
[root@localhost ~]# telnet 192.168.0.244 13800
可以看到如下界面:
输入:stats,可以看到如下界面:
输入:quit退出
说明已经安装成功了。