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

Install Zabbix 3.2 using the Yum source on CentOS 7

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

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

Install Zabbix 3.2 using the Yum source on CentOS 7

1. Environmental preparation

[root@szzabbix ~] # setenforce 0 [root@szzabbix ~] # sed-I "s/SELINUX=enforcing/SELINUX=disabled/g" / etc/selinux/config [root@szzabbix ~] # rpm--import / etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 [root@szzabbix ~] # yum install epel-release.noarch wget vim gcc gcc-c++ lsof chrony tree nmap unzip rsync-y [root@szzabbix ~] # rpm--import / etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7

2. LAMP installation

[root@szzabbix ~] # yum install httpd mariadb mariadb-server mariadb-client php php-mysql [root@szzabbix ~] # systemctl start mariadb

3. Zabbix installation

[root@szzabbix ~] # rpm- ivh http://repo.zabbix.com/zabbix/3.2/rhel/7/x86_64/zabbix-release-3.2-1.el7.noarch.rpm[root@szzabbix ~] # rpm--import / etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX [root@szzabbix ~] # yum install zabbix-server-mysql zabbix-web-mysql zabbix-get zabbix-agent

4. Create a database

[root@szzabbix ~] # mysqladmin-uroot password ABCabcObjectives 123 [root@szzabbix ~] # mysql-uroot-pMariaDB [(none)] > CREATE DATABASE zabbix DEFAULT CHARACTER SET utf8 COLLATE utf8_bin;MariaDB [(none)] > GRANT ALL ON zabbix.* TO 'zabbix'@'%' IDENTIFIED BY' zabbix';MariaDB [(none)] > GRANT ALL ON zabbix.* TO 'zabbix'@'localhost' IDENTIFIED BY' zabbix';MariaDB [(none)] > flush privileges;MariaDB [(none)] > quit

5. Import data

[root@szzabbix ~] # cd / usr/share/doc/zabbix-server-mysql-3.2.0/ [root@szzabbix zabbix-server-mysql-3.2.0] # zcat create.sql.gz | mysql- uroot-p zabbix [root@szzabbix zabbix-server-mysql-3.2.0] # cd ~

6. Modify configuration

[root@szzabbix ~] # vim / etc/zabbix/zabbix_server.conf

DBHost=localhost

DBName=zabbix

DBUser=zabbix

DBPassword=zabbix

[root@szzabbix ~] # vim / etc/httpd/conf.d/zabbix.conf

Php_value date.timezone Asia/Chongqing

7. Start

[root@szzabbix ~] # systemctl start httpd [root@szzabbix ~] # systemctl start zabbix-server [root@szzabbix ~] # systemctl start zabbix-agent

8. Configured via http://ip address / zabbix

Access the default user name / password: Admin/zabbix, note that the user name is also case-sensitive

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