wget -c http://soft.vpser.net/lib/libevent/libevent-2.0.13-stable.tar.gz
tar zxvf libevent-2.0.13-stable.tar.gz
cd libevent-2.0.13-stable/
./configure --prefix=/usr/local/libevent
make&& make install
cd ../

ln -s /usr/local/libevent/lib/libevent-2.0.so.5  /lib/libevent-2.0.so.5

wget -c http://soft.vpser.net/web/memcached/memcached-1.4.7.tar.gz
tar zxvf memcached-1.4.7.tar.gz
cd memcached-1.4.7/
./configure --prefix=/usr/local/memcached
make &&make install
cd ../

echo "/usr/local/memcached/bin/memcached start -u kong&">>/etc/rc.d/rc.sysinit

##  & 一定要加否则启动linux时inittab 无法启动会一直停留在启动页面中,&表示在后台运行###

###/etc/rc.d/rc.sysinit 任何启动模式均会启动memcached

 

cp conf/memcached.php /home/wwwroot/memcached.php

/usr/local/memcached/bin/memcached start -u www