成人免费xxxxx在线视频软件_久久精品久久久_亚洲国产精品久久久_天天色天天色_亚洲人成一区_欧美一级欧美三级在线观看

Cacti的安裝配置-相關擴展設置

運維 系統運維
Cacti安裝配置:cacti是一套開源的網絡監控工具,可以用來監控apache服務器和mysql服務器的運行狀態。本文講述的是Cacti下php、mysql、Apache的擴展

  Cacti 安裝配置:回大綱

  PHP擴展設置

  Cacti 使用如下 PHP 擴展組件:mysql、session、sockets、xml、pcre,同時,我們也建議使用snmp擴展。你可以選擇使用 net-snmp 來代替 php-snmp 擴展(有時是 net-snmp-utils )。

  Cacti 插件會使用額外的擴展,比如gd (reportit 使用)、dom (cli 腳本使用,只在 PHP 5 中才被支持)

  當使用一個較新版本的 PHP 時,你可能會發現的提示

  1.   ;;;;; Note: packaged extension modules are now loaded via the .ini files; found in the directory /etc/php.d; these are loaded by default.;;;;  
  2.  

  這種情況下,并沒有什么特殊的地方。不過需要驗證下擴展模塊相關 的ini配置文件是否已經配置在php支持的目錄下。

  對于較老版本版本的PHP,你需要編輯 php.ini 并且增加

  1.   extension_dir = /etc/php.d  
  2.  

  這將支持 PHP 在配置的目錄下尋找更多的擴展配置文件。對不同的 Linux 分支而言,擴展文件夾的路徑可能并不相同,比如會在 extension_dir=/usr/lib/php/modules。

  編輯 /mysql.ini 以激活 mysql 擴展。

  1.   ; Enable mysql extension moduleextension=mysql.so  
  2.  

  編輯 /snmp.ini 以激活 snmp 擴展。

  1.   ; Enable snmp extension moduleextension=snmp.so  
  2.  

  如果使用 PHP 4.3.5 以下的版本,那么在 php.ini 中添加以下配置;如果使用 PHP 4.3.6 之上的版本,那么請在配置文件中移除此行(如果存在的話)。

  1.   session.save_path=/tmp  
  2.  

  配置網絡服務器(Apache)

  如果你還在使用 Apaceh 1.3.x 版,那么安裝使用 PHP 5.x 或許并不合適。

  請查找文件類似 "/etc/httpd/conf/httpd.conf" 的文件,并且確認文件中包含

  1.   # Load config files from the config directory "/etc/httpd/conf.d". Include conf.d/*.conf  
  2.  

  現在,請編輯其中的包含的PHP配置文件 "/etc/httpd/conf.d/php.conf",如果是使用 PHP 5,那么,確認文件中包含:

  1.   # PHP is an HTML-embedded scripting language which attempts to make it # easy for developers to write dynamically generated webpages. LoadModule php5_module modules/libphp5.so # # Cause the PHP interpreter to handle files with a .php extension. AddHandler php5-script .php AddType text/html .php # # Add index.php to the list of files that will be served as directory # indexes. DirectoryIndex index.php  
  2.  

  如果你不是安裝 Cacti 到 Apache 默認的網絡目錄文件夾位置,那么在 /etc/httpd/conf.d 中新增配置文件 cacti.conf,并且按如下內容編輯。設置 /your/cacti/dir 為你自己的cacti目錄名稱。更新 Allow from 127.0.0.1 為任何你需要的的配置(比如,你所在公司的某個子網段)。請留意注釋中的配置提示,尤其是在你啟用了 SELinux 的時候!

  1.   # 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 1Alias /cacti /your/cacti/dir AllowOverride None Order Deny,Allow Deny from all Allow from 127.0.0.1 Allow from ::1 Options Indexes Includes FollowSymLinks# These directories do not require access over HTTP # Order Deny,Allow Deny from All Allow from None  
  2.  

  MySQL設置

  為 MySQL 的 root 用戶設置一個密碼。

  1.   shell> mysqladmin --user=root password somepassword shell> mysqladmin --user=root --password reload  
  2.  

  請參閱MySQL的文檔以了解詳細內容。

  1.   UCD-SNMP-MIB::versionConfigureOptions.0 = STRING: "'-disable-shared'  
  2.  
  3.   '--with-mib-modules=host/hr_system'"  
  4.  

【編輯推薦】

Cacti安裝篇

Cacti配置下的使用技巧

Cacti如何監控Tomcat

責任編輯:zhaolei 來源: cnblogs
相關推薦

2011-04-02 15:30:20

Cacti安裝

2011-04-02 15:26:51

Cacti安裝

2011-03-25 13:40:28

Cacti安裝配置

2011-04-02 15:26:58

Cacti安裝

2011-03-25 15:01:44

Cacti安裝

2011-04-02 15:17:59

2010-01-13 11:17:50

2011-04-02 15:17:48

Cacti安裝

2011-04-02 15:26:45

Cacti安裝

2011-03-31 15:51:51

cacti

2011-03-25 11:02:19

Cacti安裝

2011-04-01 12:22:35

2011-03-11 12:57:30

CentosLAMP

2010-06-09 16:55:04

2010-01-13 15:50:23

CentOS安裝

2010-06-13 17:07:10

Cacti使用手冊

2010-03-18 17:57:17

Python安裝配置

2014-01-16 14:20:38

CactiCacti監控

2011-11-08 21:55:58

MRTG 配置

2011-03-30 15:05:40

MRTG安裝
點贊
收藏

51CTO技術棧公眾號

主站蜘蛛池模板: 日韩欧美国产一区二区三区 | 欧美视频在线观看 | 天天爽综合网 | 亚洲精品永久免费 | 欧美日韩久久久 | aaa在线观看 | 2019中文字幕视频 | 毛片区 | 日韩欧美一区二区三区四区 | 羞羞视频网站免费观看 | 在线日韩 | 日韩欧美国产一区二区三区 | 伊人春色在线观看 | 久久综合欧美 | 国产精品国产a级 | 国产精品资源在线 | 久久精品亚洲国产 | 国产亚洲一区二区三区在线观看 | av一区二区在线观看 | 亚洲精品一区二区三区蜜桃久 | 精品一区精品二区 | 亚洲国产欧美国产综合一区 | 红桃视频一区二区三区免费 | 久久久xx | 91久久久久 | 久久三区| 日本a∨视频 | 狠狠躁天天躁夜夜躁婷婷老牛影视 | 国产精品视频yy9299一区 | 一区二区三区日本 | 欧美国产一区二区 | 天天看天天爽 | 亚洲精品成人av久久 | 国产精品久久久久久久三级 | av一级久久 | 久久久www成人免费精品张筱雨 | 日本三级电影在线免费观看 | 色婷婷综合成人av | 97伦理电影网 | 亚洲第一天堂 | 日韩视频一级 |