记录一次安装zabbix错误

记录一次安装zabbix错误


安装前确保关闭增强安全和防火墙
vi /etc/selinux/config
SELINUX=disabled

#setenforce 0
#getenforce
#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
在这里插入图片描述

其他问题查看日志
zabbix_agentd.log
zabbix_server.log

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值