1. yum安装
# yum install memcached.x86_64 php-pecl-memcache.x86_64
或者
# yum install memcached php-pecl-memcache
2. 配置
vim /etc/sysconfig/memcached
PORT="11211"
USER="memcached"
MAXCONN="4096"
CACHESIZE="512"
OPTIONS=
3. start/stop/restart/status memcached service
# /etc/init.d/memcached start
# /etc/init.d/memcached stop
# /etc/init.d/memcached restart
# /etc/init.d/memcached status
4. verify memcached is running
# pgrep memcached
# netstat -tulpn | grep :11211