Edit “include/config.php” and specify the database type, name, host,user and password for your Cacti configuration.
$database_type = "mysql"; $database_default = "cacti"; $database_hostname = "127.0.0.1"; $database_username = "cactiuser"; $database_password = "cacti"; $database_port = '3333'; #修改数据库连接配置 /* load up old style plugins here */ $plugins = array(); //$plugins[] = 'thold'; /* Edit this to point to the default URL of your Cacti install ex: if your cacti install as at http://serverip/cacti/ this would be set to /cacti/ */ $url_path = "/cacti/"; /* Default session name - Session name must contain alpha characters */ #$cacti_session_name = "Cacti";重启nginx php mysql 访问 http://localhost/cacti
无错误即可,到此安装完毕
#更多内容详见官方手册 http://docs.cacti.net/manual
1.
ERROR:Your Cacti database login account does not have access to the MySQL TimeZone database. Please provide the Cacti database account “select” access to the “time_zone_name” table in the “mysql” database, and populate MySQL’s TimeZone information before proceeding.
mysql> GRANT SELECT ON mysql.time_zone_name TO cactiuser@localhost IDENTIFIED BY 'cacti'2.
ERROR: Your MySQL TimeZone database is not populated. Please populate this database before proceeding.
mysql_tzinfo_to_sql /usr/share/zoneinfo/ | mysql -u root -p mysql