zoukankan      html  css  js  c++  java
  • 解压安装Cacti在apache中的补充

    如果你不是安装 Cacti 到 Apache 默认的网络目录文件夹位置,那么在 /etc/httpd/conf.d 中新增配置文件 cacti.conf,并且按如下内容编辑。设置 /your/cacti/dir 为你自己的cacti目录名称。更新 Allow from 127.0.0.1 为任何你需要的的配置(比如,你所在公司的某个子网段)。请留意注释中的配置提示,尤其是在你启用了 SELinux 的时候!

    # Cacti - the complete rrdtool-based graphing solution
    #
    # Allows only localhost by default
    #
    # Allowing cacti to anyone other than localhost should be considered
    # dangerous unless properly secured by SSL

    # Make sure, that httpd can read your cacti directories.
    # At minimum, you need
    # chmod ugo+r -R /your/cacti/dir
    # Make sure to replace with your directories

    # When using SELinux, set the following:
    # chcon -R -h -t httpd_sys_content_t /your/cacti/dir
    # when using SELinux and you private homedir, enable
    # setsebool -P httpd_enable_homedirs 1
    # setsebool -P httpd_read_user_content 1

    Alias /cacti /your/cacti
    <Directory /your/cacti>
    AllowOverride None
    Order Deny,Allow
    Deny from all
    Allow from 127.0.0.1
    Allow from ::1
    Options Indexes Includes FollowSymLinks
    </Directory>

    # These directories do not require access over HTTP
    #
    <Directory /your/cacti/cli>
    Order Deny,Allow
    Deny from All
    Allow from None
    </Directory>
  • 相关阅读:
    (一)linux 系统命令与文件
    python(1)- 初识python
    四、计算机硬件知识整理
    三、计算机硬件历史
    二、网络基础之网络协议
    jmeter while循环使用
    gitlab分支管理
    gitlab基本操作
    JAVA多种向influxDB中插入数据方式
    JAVA类变量和实例变量
  • 原文地址:https://www.cnblogs.com/rhjeans/p/4530383.html
Copyright © 2011-2022 走看看