zoukankan      html  css  js  c++  java
  • Zabbix agent 启动报错:cannot set resource limit [13] Permission denied

    启动zabbix agent失败,

    # tail /var/log/zabbix/zabbix_agentd.log
    ……
      1568:20200407:171352.170 Starting Zabbix Agent [Zabbix server]. Zabbix 3.4.11 (revision 82160).
      1568:20200407:171352.170 **** Enabled features ****
      1568:20200407:171352.170 IPv6 support:          YES
      1568:20200407:171352.170 TLS support:           YES
      1568:20200407:171352.170 **************************
      1568:20200407:171352.170 using configuration file: /etc/zabbix/zabbix_agentd.conf
      1568:20200407:171352.170 cannot set resource limit: [13] Permission denied
      1568:20200407:171352.170 cannot disable core dump, exiting...
    
    

    关闭selinux,启动成功:

    # getenforce
    Enforcing
    
    # setenforce 0
    You have new mail in /var/spool/mail/root
    
    # getenforce
    Permissive
    
    # systemctl start zabbix-agent
    
    # sed -i "s/SELINUX=enforcing/SELINUX=disabled/g" /etc/selinux/config
    
    

    如果不想关闭selinux,则需要进行如下安装和配置:

    # yum install -y policycoreutils-python
    
    # semanage permissive -a zabbix_agent_t
    
    # systemctl start zabbix-agent
    
    

    如果是zabbix-server,则设置:

    # semanage permissive -a zabbix_t
    
    

    参考:


    https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/51642-zabbix-3-4-documentation-selinux

  • 相关阅读:
    浏览器渲染页面
    递归求1-100之和
    border属性
    ES6 Class
    数组去重
    get、post请求
    对象冒充继承
    原型链继承
    实现JS数据拷贝
    【转】centos升级curl版本
  • 原文地址:https://www.cnblogs.com/redstar1000/p/12657881.html
Copyright © 2011-2022 走看看