码迷,mamicode.com
首页 > 系统相关 > 详细

Centos 6.5 安装memcached

时间:2017-08-09 21:24:51      阅读:190      评论:0      收藏:0      [点我收藏+]

标签:stat   更改   family   开机   保存   设置   自启动   防火墙   ice   

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

标签:stat   更改   family   开机   保存   设置   自启动   防火墙   ice   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!