Rhel5 detection software construction

Source: Internet
Author: User

Building awstats (linux5.4)
Attach a cd
Mount/dev/cdrom/media
Cd/media/Server
Rpm-ivh php-pdo-[tab] php-mysql-[tab] php-gd-[tab] php-mbstring-[tab]
 
Modify ftp
Vi/etc/vsftpd. conf
Add chroot_local_user = YES
Service vsftpd start
Chkconfig vsftpd on
Create users and upload software
Adduser up
Passwd up
Jia
Jia
 
Decompress and compile
Cd/home/up
Ls
Tar-zxf awstats-6.9.tar.gz
Music awstats-6.9/usr/local/awstats
Cd/usr/local/awstats/tools
./Awstats_configure.pl
/Etc/httpd/conf/httpd. conf
Y
Www.jia.com
Mkdir/var/lib/awstats
Vi/etc/awstats/awstats.www.jia.com. conf
Modify LogFile = "/var/log/httpd/access_log"
 
Refresh
Perl/usr/local/awstats/wwwroot/cgi-bin/aestats. pl-update-config = www.jia.com
Task Plan
Crontab-e
*/5 * perl/usr/local/awstats/wwwroot/cgi-bin/awstats. pl-update-config = www.jia.com
 
Web browsing path
Service httpd start
Chkconfig httpd on
Http: // 192.168.1.3/awstats. pl? Config = www.jia.com
 
 
Cacti Construction
Cd/home/up/
Ls
Rpm-ivh net-snmp-* lm_sensors-[tab] (Upload File)
Vi/etc/snmp/snmpd. conf
Change the name of jia after 41 rows of default
Rename all after row 62 exact
Remove before 85 rows of view #
Service snmpd start
Chkconfig snmpd on
 
Install necessary software packages
Cd/media/Server
Rpm-ivh libpng-devel-[tab] libart_lgpl-devel-[tab] freetype-devel-[tab]
Cd/home/up
Tar-zxf rrdtool-[tab]
Cd rrdtool-[tab]
./Configure-prefix =/usr/local; make install
 
Cd/var/www/html/
Tar-zxf/home/up/cacti-[tab]
Ls
Mv cacti-[tab] cacti
Adduser cactiuser
Chown-R cactiuser. cactiuser cacti/
 
Create a database
Service mysqld start
Chkconfig mysqld on
Mysql
Create database cactidb default character set utf8;
Exit
Mysql cactidb <cacti/cacti. SQL
Cd/var/www/html/cacti/
Vi include/config. php
Modify $ database_default = "cactidb ";
-Username = "root ";
-Password = "";
Refresh
Php/var/www/html/cacti/poller. php
Task Plan
Crontab-e
*/5 * php/var/www/html/cacti/poller. php
 
Ntop Construction
Install necessary software packages
Cd/media/Service
Rpm-ivh libpcap-devel-[tab]
 
Compile
Cd/media/up
Tar-zxf ntop-[tab]
Cd ntop-[tab]
./Autogen. sh -- with-tcpwrap; make install
 
Nic binding
Ntop-
Ntop-d-I eth0

Author: Jia Xiaoyang"

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.