Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Installation and deployment of cacti under centos

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

Deploy snmp:yum-y install net-snmp net-snmp-utils

(startup after service snmpd start deployment)

Deploy php and database: yum-y install httpd mysql mysql-server mysql-devel php php-mysql

(startup after service httpd start deployment)

(startup after service mysqld start deployment)

Deploy rrd (polling data): yum-y install rrdtool

Install cacti

# tar xf cacti-0.8.7g.tar.gz-C / var/www/html/

# cd / var/www/html#mv cacti-0.8.7g/ cacti# vim cacti/include/config.php

5. Create a database

# mysql

Mysql > create database cacti

Mysql > grant all on cacti.* to 'cactiuser'@'localhost' identified by' 123456'

Mysql > flush privileges

Mysql > exit

6. Carry out authorization

# chown-R root:root / var/www/html/cacti/

# useradd cacti

# chown-R cacti:cacti / var/www/html/cacti/log/

# chown-R cacti:cacti / var/www/html/cacti/rra/

7. Enter http://IP/cacti/install/ in the browser to enter the cacti installation wizard (the port here is 80 by default, and you can modify the port in vim / etc/httpd/conf/httpd.conf)

8. Related configuration to be continued

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report