yum install redis 原生修改文件 vi/etc/redis.conf 找到 bind 127 0.0.0.1 把 bind 127 0.0.0.1 改成 0.0.0.0 修改完之后 Esc : wq 进行保存