Cacti is a set of graphical analysis tools for network traffic monitoring based on PHP, MySQL, SNMP, and RRDtool. It is monitored by graphical analysis tools. It is monitored by graphical analysis tools. It uses SNMP to get data, use it to get data, use RRDtool to paint graphics, and you can totally not paint graphics, and you can totally not paint graphics, and you don't need to understand RRDtool complex parameters.
I installed the Apache MySQL php rrdtool cacti on test3.wolf.org (192.168.87.130) to monitor Test1.test.com (192.168.87.129), so install the SNMP agent on test1.test.com.
1, Apache Installation
Tar Xvfz httpd-2.2.11.tar.gz
CD httpd-2.2.11
./configure--prefix=/usr/local/apache--enable-so
#--prefix=<install_path> indicates that the compiled binaries are installed into the <Install_Path> directory, replacing <INSTALL_PATH> with the actual installation path, such as--prefix =/usr/local/apache-2.2.11, if this configuration parameter is omitted, it is installed to the/usr/local/apache2 directory by default.
#--ENABLE-SO indicates that the compiled dynamic loading module (DSO) support to the httpd binary file, this module enables the various functional modules of Apache can be compiled separately from the core and dynamically loaded at runtime. With the DSO support, upgrade and add modules only need to compile the relevant modules, you do not have to recompile the entire system. The latest version of Apache compiles this module to httpd binaries by default, and you may want to explicitly indicate this option if you are using an earlier version of Apache and need DSO support.
#--enable-mods-shared=<module-list> clearly indicates the module to be compiled as DSO,<module-list> a space-delimited list of module names, all or Most,all to include all modules , most represents most modules, such as the--enable-mods-share= "rewrite deflate",--enable-mods-share=most, the effect is equivalent to multiple--enable-<feature>= Share
Make && make install
/usr/local/apache/bin/apachectl Restart boot httpd
echo "/usr/local/apache/bin/apachectl start" >>/etc/rc.local join Boot
2, MySQL Installation
This version of the MySQL installation is relatively simple, it is recommended to do so ~ ~!!!
Tar Xvfz mysql-5.1.49-linux-i686-glibc23.tar.gz
Useradd mysql add MySQL user
MV Mysql-5.1.49-linux-i686-glibc23/usr/local/mysql
Chown-r root:mysql/usr/local/mysql/Modify Permissions
Chown-r mysql:mysql/usr/local/mysql/data/
cd/usr/local/mysql/
CP SUPPORT-FILES/MY-MEDIUM.CNF/ETC/MY.CNF
./scripts/mysql_install_db--user=mysql initialization of MySQL
/usr/local/mysql/bin/mysqld_safe--user=mysql & Background boot MySQL
./bin/mysqladmin-uroot password 123456 Add root user and password
echo "/usr/local/mysql/bin/mysqld_safe--user=mysql &" >>/etc/rc.local Boot
echo "Export path= $PATH:/usr/local/mysql/bin" >>/etc/profile setting environment variables
Source/etc/profile Make environment variables effective
3,php Installation
Need additional package support before installing PHP, these packages are many, here I will not compile the installation, the simplest way is Yum installation
[Root@test3 mysql]# yum install-y libpng libpng-devel libjpeg libjpeg-devel freetype freetype-devel gd gd-devel Mysql-dev El
[Root@test3 php-5.2.9]# tar xvfz php-5.2.9.tar.gz
[Root@test3 php-5.2.9]# CD php-5.2.9
[Root@test3 php-5.2.9]#./configure--prefix=/usr/local/php--with-apxs2=/usr/local/apache/bin/apxs--with-mysql=/ Usr/local/mysql--with-gd--with-freetype-dir--with-jpeg-dir--with-png-dir--enable-sockets