CentOS 5.4 编译安装Cacti
安装环境:CentOS 5.4
依次安装apache,mysql,php,cacti ,rrdtool
1.安装apache
tar xzvf http-2.2.8.tar.gz
cd http-2.2.8
./configure --prefix=/usr/local/apache2 --enable-so --enable-deflate --enable-cache --enable-disk-cache --enable-mem-cache --enable-file-cache --enable-modules=all --enable-shared=max --enable-rewrite --enable-static-support --enable-static-htpasswd --enable-static-htdigest --enable-static-rotatelogs --enable-static-logresolve --enable-static-htdbm --enable-static-ab --enable-static-checkgid --enable-vhost-alias --disable-userdir --with-mpm=worker
# make
# make install
# /usr/local/apache2/bin/apachectl start
# cd /etc/rc3.d
# ln -s /etc/init.d/httpd S85httpd
# ln -s /etc/init.d/httpd K85httpd
2.安装Mysql
引用#cp mysql-5.1.22-rc-linux-i686-icc-glibc23.tar.gz /usr/local/
#cd /usr/local/
#tar -zxvf mysql-5.1.22-rc-linux-i686-icc-glibc23.tar.gz
#ln -s mysql-5.1.22-rc-linux-i686-icc-glibc23 mysql
#cd mysql
#groupadd mysql
#useradd -g mysql mysql
#chown -R mysql .
#chgrp -R mysql .
#scripts/mysql_install_db --user=mysql
#chown -R root .
#chown -R mysql data
#bin/mysqld_safe --user=mysql &
#support-files/my-large.cnf /etc/my.cnf
#cp support-files/mysql.server /etc/rc.d/init.d/mysqld
#servie mysqld restart
#chkconfig --add mysqld
#chkconfig --level 345 mysqld on
#service mysqld restart