Cacti是一個大型網絡中使用的很好的監控軟件,它既能夠在Linux上安裝也能夠在Windows上進行安裝.今天主要講解一下關於Linux的Cacti的安裝過程以及它的相關使用操作:
1.安裝apache
#tar xvzf xxxx
#./configure –prefix=/app/apache –enable-module=so && make && make install
#/app/apache/bin/apachectl start
2.安裝mysql
#tar….
#./configure –prefix=/app/mysql && make && make install
#./scripts/mysql_install_db
ldconfig
./bin/mysqld_safe –user=root &
./bin/mysqladmin -u root -p password ‘xxxxxx’ #改root密碼
./bin/mysql -p
mysql>use mysql;
mysql>show tables;
mysql>exit
#出來表就OK了
3.安裝php.(這裡面需要安裝4.x版,不要5.x)
#tar…
#./configure –prefix=/app/php –with-mysql=/app/mysql –with-apxs2=/app/apache/bin/apxs
#make
#make install
#cp ./php.ini-dist /usr/local/lib/php.ini
#vi /app/apache/conf/httpd.conf #增加一行AddType application/x-httpd-php .php
#/app/apache/bin/apachectl restart
#可以編寫一個PHP文件,測試PHP工作正常否.內容
4.安裝phpMyadmin(可步可省)
#tar xvzf phpMy…
#mv phpM…. /app/apache/htdocs/phpMyadmin
#vi /app/apache/htdocs/phpMyadmin/config.inc.php