实验环境:
https://docs.cacti.net/manual:088:1_installation.1_install_unix
cacti:192.168.0.7/24 LAMP, net-snmp-tuils, rrdtool, cacti
client: 192.168.0.8/24 mysql mysnet-snmp-tuils
1,安装LAMP环境,确保协调工作正常
[root@tan ~]# yum -y install httpd mysql mysql-server mysql-devel
第一步就出现错误了提示没有mysql-server这个包下面是解决方法
[root@tan ~]yum -y install wget
[root@tan ~]wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
[root@tan ~]rpm -ivh mysql-community-release-el7-5.noarch.rpm
[root@tan ~]ls -1 /etc/yum.repos.d/mysql-community*
[root@tan ~]yum install mysql-server
[root@tan ~]# yum -y install php php-mysql php-gd
[root@tan ~]# yum -y install zlib freetype libxml2 gd libjpeg //安装依赖库
[root@tan ~]# vim /etc/httpd/conf/httpd.conf