配置zabbix时启动失败解决办法

配置zabbix时启动失败解决办法一开始按照这篇博客来配置zabbixhttps://blog.csdn.net/rujianxuezha/article/details/79842998启动zabbix时出现以下提示[root@www~]#systemctlstartzabbix-serverJobforzabbix-server.servicefailedbecauseaconfiguredresourc…

大家好,又见面了,我是你们的朋友全栈君。

一开始按照这篇博客来配置zabbix

https://blog.csdn.net/rujianxuezha/article/details/79842998

启动zabbix时出现以下提示

[root@www ~]# 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.

按照提示运行systemctl status zabbix-server.service命令查看状态,发现是失败

[root@www ~]# systemctl status zabbix-server.service
● zabbix-server.service - Zabbix Server
   Loaded: loaded (/usr/lib/systemd/system/zabbix-server.service; enabled; vendor preset: disabled)
   Active: activating (auto-restart) (Result: resources) since 四 2018-05-10 22:34:30 CST; 691ms ago
  Process: 3915 ExecStart=/usr/sbin/zabbix_server -c $CONFFILE (code=exited, status=0/SUCCESS)


5月 10 22:34:30 www.aa.com systemd[1]: zabbix-server.service never wrote its PID ...g.
5月 10 22:34:30 www.aa.com systemd[1]: Failed to start Zabbix Server.
5月 10 22:34:30 www.aa.com systemd[1]: Unit zabbix-server.service entered failed ...e.
5月 10 22:34:30 www.aa.com systemd[1]: zabbix-server.service failed.

Hint: Some lines were ellipsized, use -l to show in full.

 

然后运行第二个提示的命令journalctl -xe,发现有点有效的提示

[root@www ~]# journalctl -xe
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit zabbix-server.service has failed.
-- 
-- The result is failed.
5月 10 22:35:13 www.aa.com systemd[1]: Unit zabbix-server.service entered failed state.
5月 10 22:35:13 www.aa.com systemd[1]: zabbix-server.service failed.
5月 10 22:35:13 www.aa.com polkitd[681]: Unregistered Authentication Agent for unix-pro
5月 10 22:35:16 www.aa.com dbus[694]: [system] Activating service name='org.fedoraproje
5月 10 22:35:16 www.aa.com dbus-daemon[694]: dbus[694]: [system] Activating service nam
5月 10 22:35:17 www.aa.com dbus[694]: [system] Successfully activated service 'org.fedo
5月 10 22:35:17 www.aa.com dbus-daemon[694]: dbus[694]: [system] Successfully activated
5月 10 22:35:17 www.aa.com setroubleshoot[3997]: SELinux is preventing zabbix_server fr
5月 10 22:35:17 www.aa.com python[3997]: SELinux is preventing zabbix_server from using
                                          
                                          *****  Plugin catchall (100. confidence) sugg
                                          
                                          If you believe that zabbix_server should be a
                                          Then you should report this as a bug.
                                          You can generate a local policy module to all
                                          Do
                                          allow this access for now by executing:
                                          # ausearch -c 'zabbix_server' --raw | audit2a

                                          # semodule -i my-zabbixserver.pp

       看到这个提示,果断运行注释掉的两个命令试试,结果运行第一个  ausearch -c ‘zabbix_server’ –raw | audit2a            并没有成功。

然后运行第二个命令semodule -i my-zabbixserver.pp    等待执行完毕后,再次启动,得到解决

 

[root@www ~]# semodule -i my-zabbixserver.pp

[root@www ~]# systemctl start zabbix-server 

[root@www ~]# netstat -anpt | grep zabbix
[root@www ~]# netstat -anpt | grep 10051
tcp        0      0 0.0.0.0:10051           0.0.0.0:*               LISTEN      4546/zabbix_server  
tcp6       0      0 :::10051                :::*                    LISTEN      4546/zabbix_server     

 

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/149818.html原文链接:https://javaforall.net

(0)
上一篇 2022年6月17日 下午12:00
下一篇 2022年6月17日 下午12:00


相关推荐

  • △>0_@ModelAttribute

    △>0_@ModelAttribute0uLL:unsignedlonglong类型的0~:“二进制按位否运算符”>>:右移运算符

    2026年2月3日
    6
  • Dubbo负载均衡策略之最小活跃策略

    Dubbo负载均衡策略之最小活跃策略今天我来学习一下Dubbo负载均衡之一的最小活跃策略-LeastActiveLoadBalance首先,让我们对负载均衡做一个简单的介绍。所谓集负载均衡,其含义就是指将负载(工作任务)进行平衡、分摊到多个操作单元上进行运行。负载均衡、集群容错、服务降级这三个概念在微服务中非常重要。从调用顺序来看,一次完整的RPC调用首先是负载均衡、其次是集群容错、最后是服务降级:负载均衡解决了选哪一个的问题、集群容错解决了换哪一个的问题、而服务降级则是解决了全错了怎么办的问题今天我们要学习的策略是最小活跃策略-Le

    2022年7月11日
    21
  • c#防止代码被反编译_C程序反编译

    c#防止代码被反编译_C程序反编译1.在编码过程中尽量使用private/internal关键词修饰class、方法和字段名称2.编码过程尽可能少地使用public修饰class、方法和字段名称3.避免使用反射和序列化,反序列化操作4.添加生成事件,调用Dotfuscator进行代码混淆if$(ConfigurationName)==Debug”C:/ProgramFiles(x86)/MicrosoftVisualStudio14.0/PreEmptiveSolutions/Dotfuscatora

    2025年8月28日
    14
  • 联合索引,回表,索引覆盖

    联合索引,回表,索引覆盖今天学习到了一点知识 来做一下笔记 建立联合索引时 为什么要关注列的顺序 mysql 建立联合索引有最左前置原则 在建立联合索引时 根据需求 where 子句中使用最频繁的一列放在最左边 如何理解联合索引中遵守的最左前置原则 mysql 默认的存储引擎是 InnoDB InnoDB 使用 B 树 B 树的数据项是复合的数据结构 是按照从左到右的顺序来建立搜索树的 比如当 AA BB CC 这样的数据来检索的时候 b 树会优先比较 AA 来确定下一步的所搜方向

    2026年3月26日
    2
  • python十进制转二进制转换_python十进制转二进制,可指定位数「建议收藏」

    python十进制转二进制转换_python十进制转二进制,可指定位数「建议收藏」#convertadecimal(denary,base10)integertoabinarystring(base2)#testedwithPython24vegaseat6/1/2005defDenary2Binary(n):”’convertdenaryintegerntobinarystringbStr”’bStr=”…

    2025年7月8日
    5
  • Aircrack-ng激活成功教程无线WIFI密码

    Aircrack-ng激活成功教程无线WIFI密码首先 如果 kali 是装在虚拟机里面的话 是不能用物理机的无线网卡的 所以 如果我们要想进行无线激活成功教程 需要外接一个无线网卡设备 并且该设备要支持 monitor 监听模式 iwconfig 系统配置无线网络设备或显示无线网络设备信息的命令 iwconfig 命令类似于 ifconfig 命令 但是他配置对象是无线网卡 它对网络设备进行无线操作 如设置无线通信频段 auto 自动模式 essid

    2026年3月19日
    2

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号