In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
Centos under Cacti how to quickly shell installation program, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain in detail for you, people with this need can come to learn, I hope you can gain something.
The procedure for installing the fast shell program for Cacti under Centos is as follows:
A friend said
One-stop installation of cacti
Ttp://blog.chinaunix.net/u1/46222/showart_1000408.html
Too troublesome, too complicated? So make a compact version of shell for quick installation to monitor system performance and network traffic using cacti
After testing and writing, you are welcome to criticize and comment.
Installing CentOS 5.1 is much more troublesome than Fedora 7, mainly because there is no yum
Cacti, you can judge and install a lot of accessories by yourself.
If you still think it's troublesome, go directly to download the CactiEZ CD CD image.
Download Cactiez 0.4 CD
Shell installation code:
Echo-e "* *"
Echo-e "Program: cacti_centos51_small.20080501.sh"
Echo-e "Cacti Install Shell Script (CentOS 5.1)"
Echo-e "by Lu 2008-05-01"
Echo-e "* *"
Echo ""
# first make sure that your Centos system can surf the Internet properly, because yum programs need to install additional development kits from the network.
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
Wget http://www.cacti.net/downloads/cacti-0.8.7b.tar.gz
Wget http://oss.oetiker.ch/rrdtool/pub/rrdtool-1.2.27.tar.gz
Chkconfig snmpd on
Chkconfig httpd on
Chkconfig mysqld on
Service snmpd restart
Service httpd restart
Service mysqld restart
Tar zxvf rrdtool-1.2.27.tar.gz
Cd rrdtool-1.2.27
. / configure
Make
Make install
Ln-s / usr/local/rrdtool-1.2.27/bin/rrdtool / usr/local/bin/rrdtool
Cd..
Tar zxvf cacti-0.8.7b.tar.gz-C / var/www/html
Mv / var/www/html/cacti-0.8.7b / var/www/html/cacti
Cd / var/www/html/cacti
# establishing cacti database and setting user access permissions
Mysqladmin-user=root create cacti
Mysql-e "use cacti; show databases;"
Mysql cacti
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';"
# use the schedule to set the rotation
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
# testing cacti with firefox
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 &
Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
Heartbeat+DRBD+MySQL highly available scenarios =
© 2024 shulou.com SLNews company. All rights reserved.