centos 5.5下cacti的安装
1.安装前面的教程搭建LAMP http://www.8gwl.com/article-112-1.html2.cacti的安装http://www.8gwl.com/article-116-1.html 请指导一下,谢谢了 请指导一下,谢谢了 回复 hlwywhmr 的帖子
你可上面网站给我留言,或者QQ联系我。。 经过了解,很牛B的东西。 经过了解,很牛B的东西。 按照那个教程,没有安装成功。再找找其它的教程去。 谢谢,参考参考 好像,不錯. #!/bin/sh
platform=`uname -i`
if [ $platform = "unknown" ]; then
platform="i386"
fi
server_ip=`ifconfig| grep 'inet addr:'| grep -v '127.0.0.1' | cut -d: -f2 | awk 'NR==1 { print $1}'`
rpm -Uvh http://download.fedora.redhat.com/pub/epel/5Server/$platform/epel-release-5-4.noarch.rpm
rpm -Uvh http://repo.webtatic.com/yum/centos/5/$platform/webtatic-release-5-1.noarch.rpm
yum install -y php php-mysql php-snmp mysql mysql-server php-pdo perl-DBD-MySQL
yum install -y net-snmp net-snmp-libs net-snmp-utils -y
yum install -y rrdtool rrdtool rrdtool-devel rrdtool-php -y
service snmpd restart
chkconfig snmpd on
wget http://www.cacti.net/downloads/cacti-0.8.7h.tar.gz
tar xvf cacti-0.8.7h.tar.gz
mv cacti-0.8.7h /var/www/html/cacti_www_yishanhome_com
service mysqld start
mysql -uroot
create database cacti;
grant all privileges on cacti.* to cactiuser@localhost identified by 'cactiuser' with grant option;
grant all privileges on cacti.* to cactiuser@127.0.0.1 identified by 'cactiuser' with grant option;
use cacti;
source /var/www/html/cacti_www_yishanhome_com/cacti.sql;
quit;
service httpd start
echo "*/1 * * * * root /usr/bin/php /var/www/html/cacti_www_yishanhome_com/poller.php" >>/etc/crontab
service crond reload
echo "http://$server_ip/cacti_www_yishanhome_com" 好东西,下载了看看! 按照那个教程,没有安装成功。再找找其它的教程去 楼主威武知道我辈学习
页:
[1]