//yum安装
#yum -y install memcached
//查看
#memcached -h
//设置
#vi /etc/sysconfig/memcached
PORT=”11211″ //端口
USER=”memcached” //用户
MAXCONN=”1024″ //最大连接数
CACHESIZE=”64″ //占用的内存
//启动、停止、重启、运行状态、开机启动
#systemctl start memcached
#systemctl stop memcached
#systemctl restart memcached
#systemctl status memcached
#systemctl enable memcached
//安装PHP-memcached扩展
#yum -y install php-pecl-memcached
//查看memcached整体信息
#memcached-tool 127.0.0.1:11211 stats
#yum -y install memcached
//查看
#memcached -h
//设置
#vi /etc/sysconfig/memcached
PORT=”11211″ //端口
USER=”memcached” //用户
MAXCONN=”1024″ //最大连接数
CACHESIZE=”64″ //占用的内存
//启动、停止、重启、运行状态、开机启动
#systemctl start memcached
#systemctl stop memcached
#systemctl restart memcached
#systemctl status memcached
#systemctl enable memcached
//安装PHP-memcached扩展
#yum -y install php-pecl-memcached
//查看memcached整体信息
#memcached-tool 127.0.0.1:11211 stats