解決CentOS 7安裝zabbix 3.0 無法啟動zabbix-server的問題[segfault at 18 ip 00007f78842b4bd0 sp 00007fff1995a818 error 4 in libpthread-2.17.so[7f78842ab000+16000]]


解決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   


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM