zoukankan      html  css  js  c++  java
  • zabbix-server启动报错解决

    启动zabbix-server有如下报错:

    29171:20180714:084911.367 cannot start alert manager service: Cannot bind socket to "/var/run/zabbix/zabbix_server_alerter.sock": [13] Permission denied.
    29142:20180714:084911.368 One child process died (PID:29171,exitcode/signal:1). Exiting ...
    29225:20180714:084923.611 cannot start preprocessing service: Cannot bind socket to "/var/run/zabbix/zabbix_server_preprocessing.sock": [13] Permission denied.
     29213:20180714:084923.613 server #18 started [poller #2]
     29195:20180714:084923.614 One child process died (PID:29225,exitcode/signal:1). Exiting ...
     29195:20180714:084925.615 syncing history data...
     29195:20180714:084925.615 syncing history data done
     29195:20180714:084925.615 syncing trend data...
     29195:20180714:084925.615 syncing trend data done
     29195:20180714:084925.615 Zabbix Server stopped. Zabbix 3.4.10 (revision 81503).
    

      以上只是粘贴了部分的错误日志。
    造成上述原因是因为SELINUX启动
    sestatus

    SELinux status:                 enabled
    SELinuxfs mount:                /sys/fs/selinux
    SELinux root directory:         /etc/selinux
    Loaded policy name:             targeted
    Current mode:                   enforcing
    Mode from config file:          disabled
    Policy MLS status:              enabled
    Policy deny_unknown status:     allowed
    Max kernel policy version:      28
    

    解决办法如下:
    vim /etc/selinux/config

    # This file controls the state of SELinux on the system.
    # SELINUX= can take one of these three values:
    #     enforcing - SELinux security policy is enforced.
    #     permissive - SELinux prints warnings instead of enforcing.
    #     disabled - No SELinux policy is loaded.
    SELINUX=disabled
    # SELINUXTYPE= can take one of three two values:
    #     targeted - Targeted processes are protected,
    #     minimum - Modification of targeted policy. Only selected processes are protected. 
    #     mls - Multi Level Security protection.
    SELINUXTYPE=targeted 
    

      修改SELINUX=disabled修改配置文件永久关闭。
    setenforce 0:临时关闭SELINUX。
      也可以设置SELINUX允许zabbix访问,也不是很麻烦,但是SELINUX基本用不到,所有这种方法如果你们想知道就自己搜索下吧,在这里就不过多陈述了。

  • 相关阅读:
    LINUX 下编译不通过解答
    线程与进程
    机房收费系统之报表总结2
    【android开发】10款实用的Android UI工具,非常有用!
    EMPTY表示元素不能包含文本,也不能包含子元素
    ResultSet是结果集对象
    如果没有指定Cookie的时效,那么默认的时效是。(选择1项)
    用于调用存储过程的对象是。(选择1项)
    Statement和PreparedStatement都是用来发送和执行SQL语句的
    DTD与XML Schema都是XML文档。(选择1项)
  • 原文地址:https://www.cnblogs.com/Cherry-Linux/p/9308490.html
Copyright © 2011-2022 走看看