解决CentOS 7安装zabbix 3.0 无法启动zabbix-server的问题
[root@localhost sbin]# service zabbix-server start
Redirecting to /bin/systemctl start zabbix-server.service
Job for zabbix-server.service failed. See 'systemctl status zabbix-server.service' and 'journalctl -xn' for details.
[root@localhost sbin]# journalctl -xn
-- Logs begin at Mon 2016-08-15 17:11:32 PDT, end at Mon 2016-08-15 19:34:58 PDT. --
Aug 15 19:34:48 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.
Aug 15 19:34:48 localhost.localdomain systemd[1]: Unit zabbix-server.service entered failed state.
Aug 15 19:34:52 localhost.localdomain systemd[1]: Starting Zabbix Server...
-- Subject: Unit zabbix-server.service has begun with start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit zabbix-server.service has begun starting up.
Aug 15 19:34:58 localhost.localdomain systemd[1]: zabbix-server.service holdoff time over, scheduling restart.
Aug 15 19:34:58 localhost.localdomain systemd[1]: Stopping Zabbix Server...
-- Subject: Unit zabbix-server.service has begun shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit zabbix-server.service has begun shutting down.
Aug 15 19:34:58 localhost.localdomain systemd[1]: Starting Zabbix Server...
-- Subject: Unit zabbix-server.service has begun with start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit zabbix-server.service has begun starting up.
Aug 15 19:34:58 localhost.localdomain systemd[1]: zabbix-server.service: control process exited, code=killed status=11
Aug 15 19:34:58 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.
Aug 15 19:34:58 localhost.localdomain systemd[1]: Unit zabbix-server.service entered failed state.
Aug 15 19:34:58 localhost.localdomain kernel: zabbix_server[46512]: segfault at 18 ip 00007f78842b4bd0 sp 00007fff1995a818 error 4 in libpthread-2.17.so[7f78842ab000+16000]
1. 问题所在
- zabbix_server[46512]: segfault at 18 ip 00007f78842b4bd0 sp 00007fff1995a818 error 4 in libpthread-2.17.so[7f78842ab000+16000]
2. 产生原因
Centos7 中 gnutls.x86_64 (gnutls.x86_64 3.3.8-14.el7_2 ) 版本过高,需要降级 3.1.18-8.el7(1.20)
3. 解决办法
1. 点我去下载gnutls-3.1.18-8.el7.x86_64.rpm
2. 降级gnutls
rpm -Uvh --force gnutls-3.1.18-8.el7.x86_64.rpm
备注:
如果遇到其他库依赖gnutls 3.3.8 卸载即可[root@localhost ~]# rpm -Uvh --force gnutls-3.1.18-8.el7.x86_64.rpm warning: gnutls-3.1.18-8.el7.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 192a7d7d: NOKEY error: Failed dependencies: gnutls(x86-64) = 3.3.8-12.el7 is needed by (installed) gnutls-dane-3.3.8-12.el7.x86_64 gnutls(x86-64) = 3.3.8-12.el7 is needed by (installed) gnutls-utils-3.3.8-12.el7.x86_64 [root@localhost ~]# yum -y remove gnutls-dane-3.3.8-12.el7.x86_64
3. 重启zabbix
systemctl restart zabbix-server.service