centos7 redis 無法用 systemctl 啟動


今天剛安裝了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.

后來把配置文件改回來就好了

這說明配置文件不能亂改,要記得做個備份。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM