1、安装方式
#yum -y install memcached
2、启动方式
#service memcached start #centos6 启动命令
#systemctl start memcached #centos7启动命令
3、查看进程
#ps -ef|grep memcached
查看服务是否运行。
4、修改默认端口防止入侵
# vi /etc/sysconfig/memcached
-------------------------编辑
PORT="9110"
USER="memcached"
MAXCONN="1024"
CACHESIZE="64"
OPTIONS=""
~
----------------------修改端口11211为9110 保存退出
重启服务
#service memcached restart #centos6 启动命令
#systemctl restart memcached #centos7启动命令