One, download, copy to the custom virtual host directory
The virtual host configuration file is as follows
<virtualhost *:80> documentroot "/www/cacti" ServerName cacti.a.com errorlog "/var/log/httpd/cacti.a.com-er Ror_log "Customlog"/var/log/httpd/cacti.a.com-access_log "Common <directory"/www/cacti "> Options None AllowOverride None Require All granted </Directory></VirtualHost>
Ii. Creating a database environment
Mysqladmin Create Cactidbmysql-uroot-p Cactidb < Cacti.sql # #把sql语句导入cactidb数据库中mysql-uroot-p-E "GRANT all on CAC tidb.* to [email protected] identified by ' Cactiuser ' "# #创建一个cactiadmin用户管理cactidbmysqladmin Flush-privileges # #刷新
Iii. Cacti Preparation before installation
Configuring the cacti/include/config.php File
$database _type = "MySQL"; $database _default = "Cactidb"; $database _hostname = "localhost"; $database _username = " Cactiadmin "; $database _password =" Cactiadmin "; $database _port =" 3306 "; $database _ssl = false;-----slightly------$url _path ="/ "; # # If you cacti a folder as a DocumentRoot folder in your system, you need to set it up.
Install net-snmp (Agent, monitored side), net-snmp-utils (NMS, tools used for monitoring), RRDtool drawing tools.
PS: Build your own installed lamp platform, may appear timezone problem, only need to add in the/etc/php.ini file
Date.timezone = Asia/shanghai
Installing cacti Notes