在CentOS6.5下安装Memcached

CentOS 6.5 安装软件非常方便,

yum install memcached

输入y

完成memcached的安装 版本为:1.4.4-3

安装完成后memcached已经启动

在window下打开cmd 输入 telnet ip 11211

连接到memcached

发现连接失败,原来是centOS的防火墙阻挡了端口11211

打开端口11211

 [root@localhost sysconfig]# vi /etc/sysconfig/iptables

加入端口11211端口

:wq 保存防火墙配置文件

[root@localhost sysconfig]# service iptables restart

重新启动防火墙

重新载入成功!

telnet ip 11211  成功!

 

posted @ 2015-07-15 09:55  徐小朝  阅读(305)  评论(1编辑  收藏  举报