redis默认不允许远程连接
用vi打开Redis服务器的配置文件redis.conf
~ sudo vi /etc/redis/redis.conf #注释bind #bind 127.0.0.1 ~ sudo /etc/init.d/redis-server restart