systemctl restart zabbix-server zabbix-agent httpd php-fpm
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.
1.然后按照提示的首先第一步输入
systemctl status zabbix-server.service
然后显示了一堆,反正看不懂,但是意思就是有错。
2.然后再来运行第二行命令
journalctl -xe
然后又显示了这么一大堆。后来经过我导出搜寻终于知道了解决办法。
3.依次运行最后那两行“#”井号后的代码
ausearch -c 'zabbix_server' --raw | audit2allow -M my-zabbixserver
然后出现以下这个
4.再运行第二个命令
semodule -i my-zabbixserver.pp
然后运行了一会之后什么也没弹出来,说明正常了。
5.接着我们再来检查一下问题是否解决,所以再运行一下zabbix-server启动的那两个个命令
systemctl restart zabbix-server zabbix-agent httpd php-fpm
systemctl status zabbix-server.service
6.浏览器输入地址验证是否成功,出现如下图即成功。http://192.168.209.128/zabbix/(ip地址记得换成自己的)
补充:查看ip的方法