安装libevent包
1. 解压缩libevent-1.4.10-stable.tar.gz包
2. 进入目录后执行./configure
3. Make && make install
安装memcache
1. 解压缩memcached-1.4.11.tar.gz
2. 进入目录后执行./configure
3. Make && make install
启动memcache
1. cp /usr/local/lib/libevent-1.4.so.2.1.3 /usr/lib64/libevent-1.4.so.2.1.3
2. ln –s /usr/lib64/libevent-1.4.so.2.1.3 /usr/lib64/libevent-1.4.so.2
3. memcached -d -m 7000 -l 10.1.2.139 -p 11311 -u root -c 100000 -t 4
关闭防火墙
/etc/init.d/iptables stop
时间: 2024-11-06 17:33:48