CentOS7 installation zabbix 4.0 tutorial (graphics and text)

Close SeLinux

setenforce 0

Permanently closed:

vi /etc/selinux/config

Turn off the firewall

systemctl stop firewalld.service

Note: Of course, you can also open the designated port

Installation Environment

LAMP

# Install apache
yum install -y httpd
# httpd service starts to start automatically
systemctl enable httpd
# Start httpd service
systemctl start httpd

Zabbix wants to store the data in the database, so you need to install Mysql:

https://blog.csdn.net/qq_43059674/article/details/100729776#_mySql_174

Install zabbix repository

# yum clean all
# rpm -Uvh https://repo.zabbix.com/zabbix/4.0/rhel/7/x86_64/zabbix-release-4.0-2.el7.noarch.rpm

Install zabbix zabbix-server-mysql zabbix-web-mysql zabbix-agent

yum -y install zabbix-server-mysql zabbix-web-mysql zabbix-agent

Create initial database

# mysql -uroot -p
password
mysql> create database zabbix character set utf8 collate utf8_bin;
mysql> grant all privileges on zabbix.* to zabbix@localhost identified by 'zabbix';
mysql> quit;

Import the sql script into the zabbix database

cd /usr/share/doc/zabbix-server-mysql-4.0.13

Unzip:

gunzip create.sql.gz

Login to mysql

mysql -u root -p #Just enter the password

Switch data

use zabbix

Import sql

source create.sql

drop out

quit;

Configure database for zabbix server

vi /etc/zabbix/zabbix_server.conf

DBPassword=zabbix

**Edit /etc/httpd/conf/zabbix.conf, uncomment and set the correct time zone. **

vi /etc/httpd/conf.d/zabbix.conf

Configuration time

php_value date.timezone Asia/Shanghai

start up

# systemctl restart zabbix-server zabbix-agent httpd
# systemctl enable zabbix-server zabbix-agent httpd

Log in to zabbix URL settings

192.168.43.161 /zabbix/

mysql connection configuration:

Set the service name:

ok login below:

The login account is Admin

Password is zabbix

Chinese configuration

Set Chinese:

The display is Chinese:

to sum up

The above is the CentOS7 installation zabbix 4.0 tutorial introduced by the editor. I hope it will be helpful to you. If you have any questions, please leave me a message. The editor will reply to you in time. Thank you very much for your support to the ZaLou.Cn website!
If you think this article is helpful to you, welcome to reprint, please indicate the source, thank you!

Recommended Posts

CentOS7 installation zabbix 4.0 tutorial (graphics and text)
CentOs7 installation and deployment Zabbix3.4 original
CentOS 7 system installation and configuration graphic tutorial
Zabbix installation and deployment and localization under CentOS
Jenkins installation and deployment tutorial under CentOS 7
Zabbix 2.2.20 installation details (Centos6.9)
Linux CentOS 7 installation tutorial
CentOS 6.5 system installation and configuration graphic tutorial (detailed graphic)
Centos7 installation of PHP and Nginx tutorial detailed
MySQL 8.0 installation, deployment and configuration tutorial on CentOS 8
Centos mysql installation and configuration
Centos7 installation and configuration prometheus
CentOS 7 installation and configuration PPTP
CentOS installation and configuration cmake
Centos7.5 installation and configuration MongoDB4.0.4
CentOS 7 installation and configuration PPTP
Hyper-V + CentOS7 installation video tutorial
centos7 kvm installation and use
CentOS7 postgresql installation and use
Centos7.4 environment installation lamp-php7.0 tutorial
Centos7 elk7.1.1 installation and use
Detailed explanation of Spark installation and configuration tutorial under centOS7
Centos8 minimal deployment and installation of OpenStack Ussuri detailed tutorial
Centos7 installation and configuration of Jenkins
Centos iso image file installation tutorial
Centos7 installation of Dameng database tutorial
Centos6.5 installation and deployment of KVM
CentOS 8 installation of MariaDB detailed tutorial
CentOS6 minimal installation KVM detailed tutorial
Centos7 hadoop cluster installation and configuration
CentOS7 installation and maintenance of Gitlab
Centos8 installation diagram (super detailed tutorial)
CentOS 7.X system installation and optimization
Java-JDK installation and configuration under CentOS
CentOS 7 Tomcat service installation and configuration
CentOS NTP server installation and configuration
Erlang 20.2 installation and deployment under CentOS 7
Centos7 mysql database installation and configuration
[Switch] CentOS7 64-bit installation mysql tutorial
2019-07-09 CentOS7 installation
centos7_1708 installation
Tutorial diagram for installing zabbix2.4 under centos6.5
Centos 7 64-bit desktop version installation graphic tutorial
Installation and use of Mysql under CentOS
Tomcat installation and configuration under CentOS 7 (Tomcat startup)
MySQL 8.0 installation, deployment and configuration under CentOS 6/7
Centos-6.5 installation and deployment of LNMP environment
Linux kernel compilation and CentOS system installation
Centos7.6 operating system installation and optimization record
Centos7 installation and deployment of gitlab server
Centos7 hive stand-alone mode installation and configuration
KVM installation and preliminary use under CentOS 7.2
Centos7 installation and deployment of Airflow detailed
Centos5 installation guide
Installation and configuration of JDK in CentOS 7 system
Python2.7 [Installation Tutorial]
CentOS 7.3 install Zabbix3
Docker installation (CentOS7 installation)
Installation and configuration of rsync server under CentOS 6.5
Installation and configuration of CentOS 7 in VMware Workstation
CentOS7 docker installation