打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
2-Preparations before Install Cacti

Cacti Required Packages

The Cacti required the following packages to be installed on your Linux operating systems like  CentOS 

§ Apache : A Web server to display network graphs created by PHP and RRDTool.

§ MySQL : A Database server to store cacti information.

§ PHP : A script module to create graphs using RRDTool.

§ PHP-SNMP : A PHP extension for SNMP to access data.

§ NET-SNMP : A SNMP (Simple Network Management Protocol) is used to manage the network.

§ RRDTool : A database tool to manage and retrieve time series data like CPU loadNetwork Bandwidth, etc.

 1.Apache : dnf install httpd httpd-devel

出現error

Step 1: Go to the /etc/yum.repos.d/ directory.

cd /etc/yum.repos.d/

Step 2: Run the below commands

sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*

sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*

Step 3: Now run the yum update

[root@autocontroller ~]# yum update -y

2.Install MySQL

dnf install mariadb-server -y

3.Install  PHP

dnf install php-pear php-common php-gd php-devel php php-mbstring php-cli                                               

  

4.Install PHP-SNMP

dnf install php-snmp

 

5.Install NET-SNMP

dnf install net-snmp-utils net-snmp-libs

6.Install  RRD-TOOL

dnf install rrdtool

7.Staring Apache, MySQL, and SNMP Services

systemctl start httpd.service

systemctl start mariadb.service

systemctl start snmpd.service

8. Configure System Start-up Links

systemctl enable httpd.service

systemctl enable mariadb.service

systemctl enable snmpd.service

9. Disable SELinux

Open and edit SELinux configuration file.

vim /etc/sysconfig/selinux

Change  SELINUX=enforcing to SELINUX=disabled. Save and exit. Reboot system

Reboot

10. Enable Repos

 yum install epel-release

本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
Zabbix部署、监测及邮件报警机制(实战!)
CentOS 7 用户怎样安装 LNMP(Nginx+PHP+MySQL)
CentOS 7下搭建LAMP平台环境
如何搭建lamp(CentOS7+Apache+MySQL+PHP)环境
CentOS 8 升级到 CentOS Stream | 网游世界
(转)centos7安装telnet服务
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服