2013-02-14
快速安裝程式如下:
echo -e "******************************************" echo -e "Program : cacti_centos63_x86.20130214.sh " echo -e "Cacti Install Shell Script (CentOS 6.3 x86) " echo -e "by Lu 2013/02/14 " echo -e "******************************************" echo "" yum -y install httpd mysql-server cacti php php-mysql php-snmp net-snmp net-snmp-libs net-snmp-utils rrdtool gcc libart_lgpl-devel zlib-devel libpng-devel freetype-devel rrdtool rrdtool-devel wget http://www.cacti.net/downloads/cacti-0.8.8a.tar.gz chkconfig snmpd on chkconfig httpd on chkconfig mysqld on service snmpd restart service httpd restart service mysqld restart tar zxvf cacti-0.8.8a.tar.gz -C /var/www/html mv /var/www/html/cacti-0.8.8a /var/www/html/cacti cd /var/www/html/cacti mysqladmin --user=root create cacti mysql -e "use cacti; show databases; " mysql cacti < cacti.sql mysql -e "use cacti; show tables; " mysql -e "GRANT ALL PRIVILEGES ON cacti.* TO cactiuser@localhost IDENTIFIED BY 'cactiuser' ; " mysql -e " flush privileges; " mysql -e "use mysql; select * from user where User='cactiuser'; " echo "*/5 * * * * root /usr/bin/php /var/www/html/cacti/poller.php > /dev/null 2>&1 " >> /etc/crontab #echo "" >> /etc/crontab #cat /etc/crontab | grep poller service snmpd restart service httpd restart service mysqld restart echo -e "\033[32mfirefox http://localhost/cacti & \033[0m" echo -e "\033[32mUserName : admin \033[0m" echo -e "\033[32mPassword : admin \033[0m" firefox http://localhost/cacti & |
(完)
[研究] Cacti 0.8.7g.tar.gz 快速安裝程式精簡版 (CentOS 6.0 x86)
http://forum.icst.org.tw/phpbb/viewtopic.php?t=20213
[研究] Cacti 0.8.7e 性能監測系統 安裝 (非官方yum)(CentOS 6.0 x86)
http://forum.icst.org.tw/phpbb/viewtopic.php?t=20212
[研究] Cacti 0.8.7e 性能監測系統 安裝 (CentOS 5.4 x86)
http://forum.icst.org.tw/phpbb/viewtopic.php?t=18010
[研究] Cacti 快速安裝程式精簡版 (CentOS 5.1)
http://forum.icst.org.tw/phpbb/viewtopic.php?t=14950
[研究] Cacti 快速安裝程式 (CentOS 5.1)
http://forum.icst.org.tw/phpbb/viewtopic.php?t=14860
[研究] Cacti 0.8.7i 性能監測系統 安裝(yum) (Fedora 16 x86)
http://forum.icst.org.tw/phpbb/viewtopic.php?t=21199
[研究] Cacti 0.8.7g (yum)快速安裝程式 (Fedora 14 x86)
http://forum.icst.org.tw/phpbb/viewtopic.php?t=19149
[研究] Cacti 快速安裝程式 (Fedora 7)
http://forum.icst.org.tw/phpbb/viewtopic.php?t=14840
沒有留言:
張貼留言