1. 查看IP地址使用ip addr
  2. 修改redis.conf使用vi redis.conf 使用/+“回车”进行查找,点击insert进入编辑模式,点击Esc退出编辑模式。
  3. 连接失败的原因:可以关闭防火墙