安装libevent库支持
yum install libevent-devel
安装memcached
wget
tar xzvf memcached-1.4.15.tar.gz
./configure --prefix=/usr/local/memcached
Make
Make install
启动memcached
/usr/local/memcached/bin/memcached -d -m 128 -u root -l 0.0.0.0 -p 12000 -c 512 -p /tmp/memcached1.pid &
加入开机启动
echo “/usr/local/memcached/bin/memcached -d -m 128 -u root -l 0.0.0.0 -p 12000 -c 512 -p /tmp/memcached1.pid &” >> /etc/rc.d/rc.local
阅读(1001) | 评论(0) | 转发(0) |