ExecStop=/usr/libexec/redis-shutdown (code=exited, status=1/FAILURE)
ExecStart=/usr/bin/redis-server /etc/redis.conf --supervised systemd (code=exited, status=1/FAILURE)
上述問題是執行Redis service start時需要redis來執行
但他執行時無法讀寫redis.conf,所以有可能是因為/etc/redis.conf的擁有者不是redis
解決方式:
chown redis /etc/redis.conf
Tue 19 21:33:14 systemd supervision requested, but NOTIFY_SOCKET not found
Tue 19 21:33:14 systemd[1]: Main process exited, code=exited, status=1/FAILURE
Tue 19 21:33:14 systemd[1]: Unit entered failed state.
Tue 19 21:33:14 systemd[1]: Failed with result 'exit-code'.
Tue 19 21:33:14 systemd[1]: Service hold-off time over, scheduling restart.
Tue 19 21:33:14 systemd[1]: Stopped Redis In-Memory Data Store.
上述問題則是因為/etc/redis.conf的supervised不是systemd
解決方是:
將supervised的值改成systemd
並在終端機輸入systemctl daemon-reload
reboot即可修正
WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
解決方法:
vi /etc/sysctl.conf
net.core.somaxconn= n>128
reboot
參考資料:
https://blog.csdn.net/jiangshouzhuang/article/details/50864933