自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

Cacti的安裝配置-相關(guān)擴展設(shè)置

運維 系統(tǒng)運維
Cacti安裝配置:cacti是一套開源的網(wǎng)絡(luò)監(jiān)控工具,可以用來監(jiān)控apache服務(wù)器和mysql服務(wù)器的運行狀態(tài)。本文講述的是Cacti下php、mysql、Apache的擴展

  Cacti 安裝配置:回大綱

  PHP擴展設(shè)置

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

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

  當(dāng)使用一個較新版本的 PHP 時,你可能會發(fā)現(xiàn)的提示

  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.  

  這種情況下,并沒有什么特殊的地方。不過需要驗證下擴展模塊相關(guān) 的ini配置文件是否已經(jīng)配置在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.  

  配置網(wǎng)絡(luò)服務(wù)器(Apache)

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

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

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

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

  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 默認(rèn)的網(wǎng)絡(luò)目錄文件夾位置,那么在 /etc/httpd/conf.d 中新增配置文件 cacti.conf,并且按如下內(nèi)容編輯。設(shè)置 /your/cacti/dir 為你自己的cacti目錄名稱。更新 Allow from 127.0.0.1 為任何你需要的的配置(比如,你所在公司的某個子網(wǎng)段)。請留意注釋中的配置提示,尤其是在你啟用了 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設(shè)置

  為 MySQL 的 root 用戶設(shè)置一個密碼。

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

  請參閱MySQL的文檔以了解詳細內(nèi)容。

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

【編輯推薦】

Cacti安裝篇

Cacti配置下的使用技巧

Cacti如何監(jiān)控Tomcat

責(zé)任編輯:zhaolei 來源: cnblogs
相關(guān)推薦

2011-04-02 15:30:20

Cacti安裝

2011-03-25 13:40:28

Cacti安裝配置

2011-04-02 15:26:51

Cacti安裝

2011-04-02 15:17:59

2011-04-02 15:26:58

Cacti安裝

2011-03-25 15:01:44

Cacti安裝

2011-04-02 15:17:48

Cacti安裝

2011-04-02 15:26:45

Cacti安裝

2010-01-13 11:17:50

2011-03-31 15:51:51

cacti

2011-04-01 12:22:35

2011-03-25 11:02:19

Cacti安裝

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監(jiān)控

2011-03-30 15:05:40

MRTG安裝

2011-11-08 21:55:58

MRTG 配置
點贊
收藏

51CTO技術(shù)棧公眾號