首页 > 系统服务 > 详细

Centos 6.5 安装memcached

时间:2017-08-09 21:00:55      阅读:184      评论:0      收藏:0      [点我收藏+]
yum 安装
  • yum y install memcached
启动服务
  • service memcached start
设置开机启动服务
  • #开机自启动
    chkconfig memcached on
    #查看开机自启动状态
    chkconfig memcached status
查看memcached状态
  • memcached-tool 127.0.0.1:11211 stats
iptables开放11211端口
  • #关闭防火墙
    /etc/init.d/iptables stop
    #查看防火墙信息
    /etc/init.d/iptables status
    #开放端口:11211
    /sbin/iptables -I INPUT -p tcp --dport 11211 -j ACCEPT
    #重启防火墙以便改动生效:(或者直接重启系统)
    /etc/init.d/iptables restart
    #将更改进行保存
    /etc/rc.d/init.d/iptables save
外网连接
  • windows cmd 命令
  • telnet ip 11211
完毕

Centos 6.5 安装memcached

原文:http://www.cnblogs.com/windchatcher/p/7327356.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!