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>
  • 相关阅读:
    平台架构设计及市场分析
    编写jQuery插件
    分布式锁
    初探12306售票算法(一)- 理论(转)
    年后跳槽如何准备?(转)
    therefore/so/hence/then/accordingly/Thus
    ignore,neglect,omit,overlook
    OOA/OOD/OOP(转)
    SQL Server里的 ISNULL 与 NULLIF
    稀疏矩阵
  • 原文地址:https://www.cnblogs.com/rhjeans/p/4530383.html
Copyright © 2011-2022 走看看