记录一次安装zabbix错误
安装前确保关闭增强安全和防火墙
vi /etc/selinux/config
SELINUX=disabled
service firewalld stop
service iptables stop
根据https://www.zabbix.com/download?zabbix=4.2&os_distribution=centos&os_version=7&db=mysql官网的安装流程安装
在执行systemctl restart zabbix-server zabbix-agent httpd遇到错误
使用# journalctl -xe查看
Apr 11 20:25:30 localhost.localdomain systemd[1]: Failed to start Zabbix Server.
-- Subject: Unit zabbix-server.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit zabbix-server.service has failed.
--
-- The result is failed.
Apr 11 20:25:30 localhost.localdomain systemd[1]: Unit zabbix-server.service entered failed state.
Apr 11 20:25:30 localhost.localdomain systemd[1]: zabbix-server.service failed.
Apr 11 20:25:40 localhost.localdomain systemd[1]: zabbix-server.service holdoff time over, scheduling restart.
Apr 11 20:25:40 localhost.localdomain systemd[1]: Starting Zabbix Server...
-- Subject: Unit zabbix-server.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit zabbix-server.service has begun starting up.
Apr 11 20:25:40 localhost.localdomain systemd[1]: PID file /run/zabbix/zabbix_server.pid not readable (yet?) after
Apr 11 20:25:40 localhost.localdomain systemd[1]: zabbix-server.service never wrote its PID file. Failing.
Apr 11 20:25:40 localhost.localdomain systemd[1]: Failed to start Zabbix Server.
-- Subject: Unit zabbix-server.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit zabbix-server.service has failed.
--
-- The result is failed.
Apr 11 20:25:40 localhost.localdomain systemd[1]: Unit zabbix-server.service entered failed state.
Apr 11 20:25:40 localhost.localdomain systemd[1]: zabbix-server.service failed.
安装trousers并做软连接搞定
#yum install trousers
#yum update trousers
# ln -s /var/run /run
访问ip/zabbix
原文地址:https://blog.csdn.net/xiayao111/article/details/89212037
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。