2018-02-07 11:39:20
浏览数 (1)
代码语言:javascript
复制[root@hf-01 ~]# systemctl start zabbix-server
Job for zabbix-server.service failed because a configured resource limit was exceeded. See "systemctl status zabbix-server.service" and "journalctl -xe" for details.
[root@hf-01 ~]# systemctl status zabbix-server.service
● zabbix-server.service - Zabbix Server
Loaded: loaded (/usr/lib/systemd/system/zabbix-server.service; disabled; vendor preset: disabled)
Active: activating (auto-restart) (Result: resources) since 二 2018-01-02 21:37:38 CST; 8s ago
Process: 3137 ExecStart=/usr/sbin/zabbix_server -c $CONFFILE (code=exited, status=0/SUCCESS)
1月 02 21:37:38 hf-01 systemd[1]: zabbix-server.service never wrote its PID file. Failing.
1月 02 21:37:38 hf-01 systemd[1]: Failed to start Zabbix Server.
1月 02 21:37:38 hf-01 systemd[1]: Unit zabbix-server.service entered failed state.
1月 02 21:37:38 hf-01 systemd[1]: zabbix-server.service failed.
[root@hf-01 ~]#
- 解决方法:
- 发现是selinux未关闭,关闭了selinux即可
- setenforce 0 临时关闭 selinux
- vi /etc/selinux/config 永久关闭 selinux(然后在重启系统,就会永久关闭selinux)
代码语言:javascript
复制[root@hf-01 ~]# setenforce 0
[root@hf-01 ~]# getenforce
Permissive
代码语言:javascript
复制[root@hf-01 ~]# systemctl start zabbix-server
[root@hf-01 ~]#