zoukankan      html  css  js  c++  java
  • cacti手册选译(1)

    第一章 系统需求

    Cacti需要你的系统安装一下软件:

    • RRDTool版本1.0.49及以上,推荐1.4+
    • MYSQL5.x及以上版本
    • PHP5.1及以上
    • 支持PHP的web Server如Apache或IIS

    第二章 Unix平台下的安装

     在基于RPM包管理的操作系统上安装,需要如下软件包:

    • httpd

    • php

    • php-mysql

    • php-snmp

    • mysql

    • mysql-server

    • net-snmp

    配置PHP

    请确保一下PHP内建或者扩展模块已经安装

    • mysql (For configuration, see note below)

    • SNMP (For configuration, see note below)

    • XML

    • Session

    • Sockets

    • LDAP (Required only when using LDAP authentication)//需要LDAP验证时安装

    • GD (Required only for some Plugins)//

    可以运行一下命令获取可用的PHP模块

    php -m

    请验证并确保正确地安装及配置了这些模块,要获取完整的描述信息请参考 PHP configuration instructions

    我们会采用最为推荐的方式配置php扩展模块,请找到/etc/php.ini文件并作如下改动:

    extension_dir = /etc/php.d
    这一行让PHP在/etc/php.d目录查询更多的配置文件,其他distros指向了/usr/lib/php/modules。任何情况下,你都应该确保比如说mysql.so在该目录。

    This will enable PHP to find more configuration directives in that very directory. Other distros point to /usr/lib/php/modules instead. In each case, you should locate e.g. mysql.so in that directory.

    使用/etc/php.d/mysql.ini文件激活mysql扩展模块

    ; Enable mysql extension module
    extension=mysql.so

    使用/etc/php.d/snmp.ini文件激活SNMP模块

    ; Enable snmp extension module
    extension=snmp.so

    如果你想要导入模板,取消下面一行的注释:

    file_uploads = On

     (委婉带许)

  • 相关阅读:
    史上最全设计模式导学目录(完整版)
    代码整洁之道读后感(三)
    代码整洁之道读后感(二)
    代码整洁之道读后感(一)
    groovy的三个强劲属性(一)Gpath
    spring mvc 自定义编辑器
    Class.this 和 this 的有什么不同
    python 异常知识点
    Freemaker 自定义指令和函数
    Freemaker如何遍历key为non-string类型的map?
  • 原文地址:https://www.cnblogs.com/silenceli/p/3410990.html
Copyright © 2011-2022 走看看