<1>启动redis-server /myredis/redis.conf
<2>停止 redis-cli shutdown
<3>修改redis为后台启动vi /etc/redis.conf ->daemonize yes
<4>查看redis进程 ps -ef|grep redis
<5>关闭防火墙 service iptables stop
<6>添加6379 vi /etc/sysconfig/iptables
-A INPUT -m state --state NEW -m tcp -p tcp --dport 6379 -j ACCEPT
<7>重启防火墙 service iptables restart