DalianSky's Blog

因为本站采用HTML5和CSS3,建议以下现代浏览器

Enter

port安装cacti后的步骤

Cacti is now installed. If you intall it for the first time,
you may have to follow this steps to make it work correctly:

1. Create the MySQL database:
# mysqladmin –user=root create cacti
2. Create a mysql user/password for cacti:
(change user and/or password if requered)
# echo “GRANT ALL ON cacti.* TO cactiuser@localhost IDENTIFIED BY ‘cactiuser’; FLUSH PRIVILEGES;” | mysql
3. Import the default cacti database:
# mysql cacti < /usr/local/share/cacti/cacti.sql
4. Edit /usr/local/share/cacti/include/config.php.
5. Add a line to your /etc/crontab file similar to:
*/5 * * * * cacti /usr/local/bin/php /usr/local/share/cacti/poller.php > /dev/null 2>&1
6. Add alias in apache config for the cacti dir:
Alias /cacti “/usr/local/share/cacti/”
7. Be sure apache gives an access to the directory (‘Allow from’ keywords).
8. Open a cacti login page in your web browser and login with admin/admin.

If you update cacti, open a login page, an updating process
will start automatically.

如果您觉得本文的内容对您的学习有所帮助:小小捐助巨大帮助
【上一篇】
【下一篇】

发表评论

*

快捷键:Ctrl+Enter
回到顶部