2-Preparations before Install Cacti

2-Preparations before Install Cacti,第1張

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.

2-Preparations before Install Cacti,一張含有 文字 的圖片

自動產生的描述,第2張 1.Apache :dnf install httpd httpd-devel

2-Preparations before Install Cacti,第3張

出現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=|baseurl=|g' /etc/yum.repos.d/CentOS-*

Step 3: Now run the yum update

[root@autocontroller ~]# yum update -y

2-Preparations before Install Cacti,一張含有 文字 的圖片

自動產生的描述,第4張

2-Preparations before Install Cacti,一張含有 文字 的圖片

自動產生的描述,第5張

2.Install MySQL

dnf install mariadb-server -y

2-Preparations before Install Cacti,一張含有 文字 的圖片

自動產生的描述,第6張3.Install  PHP

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

2-Preparations before Install Cacti,一張含有 文字 的圖片

自動產生的描述,第7張  

4.Install PHP-SNMP

dnf install php-snmp

 

2-Preparations before Install Cacti,一張含有 文字 的圖片

自動產生的描述,第8張

5.Install NET-SNMP

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

2-Preparations before Install Cacti,第9張

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

2-Preparations before Install Cacti,一張含有 文字 的圖片

自動產生的描述,第10張


生活常識_百科知識_各類知識大全»2-Preparations before Install Cacti

0條評論

    發表評論

    提供最優質的資源集郃

    立即查看了解詳情