记录一次安装zabbix错误

记录一次安装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

在这里插入图片描述

相关文章

LinuxSystemd服务(2021.07.09)目录LinuxSystemd服务(2021.07...
opidrvabortingprocessM002ospid(3561)asaresultofORA-600OR...
安装好haproxy后,配置正确无法启动,看日志:Feb1309:32:50clu...
Linux 系统与服务管理工具Systemd被曝存在3大漏洞,影响几乎...
一、systemd查看日志文件有隐藏 systemctlstatusSERVICE-l-...
不要在mp目录下保存文件,该目录会定期清理文件mp默认保存10...