*****************
安装cacti
*****************
1.解压并放到/var/www/html/cacti目录下
[root@OCM home]# tar xzf cacti-0.8.8a.tar.gz
[root@OCM home]# mv cacti-0.8.8a /var/www/html/cacti
[root@OCM home]# cd /var/www/html/cacti/
2.创建数据库
[root@OCM cacti]# mysqladmin create cactidb
[root@OCM cacti]# mysql cactidb < cacti.sql --把表导入库中
3.创建访问cactidb的用户
mysql> grant all on cactidb.* to cactiuser@localhost identified by 'cactipassword';
Query OK, 0 rows affected (0.04 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.08 sec)
安装cacti
*****************
1.解压并放到/var/www/html/cacti目录下
[root@OCM home]# tar xzf cacti-0.8.8a.tar.gz
[root@OCM home]# mv cacti-0.8.8a /var/www/html/cacti
[root@OCM home]# cd /var/www/html/cacti/
2.创建数据库
[root@OCM cacti]# mysqladmin create cactidb
[root@OCM cacti]# mysql cactidb < cacti.sql --把表导入库中
3.创建访问cactidb的用户
mysql> grant all on cactidb.* to cactiuser@localhost identified by 'cactipassword';
Query OK, 0 rows affected (0.04 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.08 sec)