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
新闻热点
疑难解答