1. 程式人生 > >Centos 6.5 安裝memcached

Centos 6.5 安裝memcached

too ats tool ont install net iptables bsp conf

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