使用命令
journalctl -xe
来查看日志
Mar 17 00:16:26 localhost.localdomain systemd[1]: Unit zabbix-agent.service entered failed state.
Mar 17 00:16:26 localhost.localdomain systemd[1]: zabbix-agent.service failed.
Mar 17 00:16:26 localhost.localdomain systemd[1]: PID file /run/zabbix/zabbix_server.pid not readable (yet?) afte
Mar 17 00:16:26 localhost.localdomain systemd[1]: zabbix-server.service never wrote its PID file. Failing.
Mar 17 00:16:26 localhost.localdomain systemd[1]: Failed to start Zabbix Server.
-- Subject: Unit zabbix-server.service has failed
zabbix-server的配置文件路径为:/etc/zabbix/zabbix_server.conf
问题存在于这句:PID file /run/zabbix/zabbix_server.pid not readable (yet?) afte
PID文件不能读写,解决方法是重启主机。
重启后启动成功。
原文:https://blog.51cto.com/181647568/2479227