今天在本地服务器安装zabbix启动时,启动不起来
于是查看错误,报以下错误
7月 17 17:34:11 localhost.localdomain zabbix_server[14009]: /usr/sbin/zabbix_server: error while loading shared libraries: libmysqlclient.so.18: cannot open shared object file: No such file or directory
代码:
[root@localhost zabbix]# systemctl start zabbix-server
Job for zabbix-server.service failed because the control process exited with error code. See "systemctl status zabbix-server.service" and "journalctl -xe" for details.
[root@localhost zabbix]# systemctl status zabbix-server
● zabbix-server.service - Zabbix Server
Loaded: loaded (/usr/lib/systemd/system/zabbix-server.service; disabled; vendor preset: disabled)
Active: activating (auto-restart) (Result: exit-code) since 一 2017-07-17 17:07:43 CST; 4s ago
Process: 13645 ExecStart=/usr/sbin/zabbix_server -c $CONFFILE (code=exited, status=127)
7月 17 17:07:43 localhost.localdomain systemd[1]: Failed to start Zabbix Server.
7月 17 17:07:43 localhost.localdomain systemd[1]: Unit zabbix-server.service entered failed state.
7月 17 17:07:43 localhost.localdomain systemd[1]: zabbix-server.service failed.
[root@localhost zabbix]# journalctl -xe
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit zabbix-server.service has failed.
--
-- The result is failed.
7月 17 17:34:00 localhost.localdomain systemd[1]: Unit zabbix-server.service entered failed state.
7月 17 17:34:00 localhost.localdomain systemd[1]: zabbix-server.service failed.
7月 17 17:34:11 localhost.localdomain systemd[1]: zabbix-server.service holdoff time over, scheduling restart.
7月 17 17:34:11 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.
7月 17 17:34:11 localhost.localdomain zabbix_server[