今天剛安裝了redis,修改了 /etc/redis.conf 的內容。
嘗試在 bind 后添加一個地址 “bind 127.0.0.1 -::* 192.168.2.1",
后用 systemctl 啟動,發現不能啟動。報錯信息如下:
[root@hadoop003 ~]# systemctl start redis
Job for redis.service failed because the control process exited with error code. See "systemctl status redis.service" and "journalctl -xe" for details.
后來把配置文件改回來就好了
這說明配置文件不能亂改,要記得做個備份。