基于CentOS下Cacti的安装 之一

1.配置好LAMP(linux+apache+mysql+php)环境:
   (1).安装apache:yum -y install httpd
   (2).安装php:yun -y install php
   (3).安装mysql:yum -y install mysql mysql-server
   (4).安装php链接mysql数据库组件:yum -y install php-mysql
2.配置服务自动启动
   (1).设置http服务开机自动启动: chkconfig httpd on
   (2).在服务清单中添加mysql服务: chkconfig --add mysqld
         设置mysq服务开机自动启动:chkconfig mysqld o n
   (3).启动http mysql服务:service httpd start 
                                         service mysqld start 
3.设置mysql的密码:
    mysqladmin -u root password  yourpassword
4.安装snmp组件:yum -y install net-snmp*
5.安装php-snmp组件:yum -y install php-snmp     
相关文章
相关标签/搜索