CentOS7 installation zabbix 4.0 tutorial (illustration and text)

CentOS7 installation zabbix 4.0 tutorial (illustration and text)

Disable SeLinux

setenforce 0

Permanently closed:

vi /etc/selinux/config

insert image description here

Turn off firewall

systemctl stop firewalld.service

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

Installation Environment

LAMP

# Install apache
yum install -y httpd
# The httpd service starts automatically when it is turned on systemctl enable httpd
# Start the httpd service systemctl start httpd

Zabbix needs to store 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

Creating the 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 sql script into zabbix database

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

Unzip:

gunzip create.sql.gz

Login to mysql

mysql -u root -p # Enter the password

Switch Data

use zabbix

Import SQL

source create.sql

quit

quit;

Configure database for zabbix server

vi /etc/zabbix/zabbix_server.conf

DBPassword=zabbix


insert image description here

Edit /etc/httpd/conf/zabbix.conf, uncomment and set the correct timezone for .

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

Configuration time

php_value date.timezone Asia/Shanghai 

insert image description here

start up

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

Log in to zabbix website settings

192.168.43.161/zabbix/


insert image description here
insert image description here

mysql connection configuration:


insert image description here

Set the service name:


insert image description here
insert image description here
insert image description here

OK, log in below:

Login account is Admin

The password is zabbix


insert image description here

Chinese configuration

Set Chinese:


insert image description here
insert image description here

What is displayed is Chinese:


insert image description here

Summarize

The above is the CentOS7 installation zabbix 4.0 tutorial introduced by the editor. I hope it will be helpful to everyone. If you have any questions, please leave me a message and the editor will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website!
If you find this article helpful, please feel free to reprint it and please indicate the source. Thank you!

You may also be interested in:
  • Super detailed steps to install zabbix3.0 on centos7
  • Centos7.4 zabbix3.4.7 source code installation method and steps
  • How to install and deploy the latest version of Zabbix 3.4 on Centos 7.3 (picture and text)
  • Detailed explanation of Centos7.2 compilation and installation of zabbix3.2 (detailed steps)
  • Detailed installation steps of Zabbix3.4 under Centos 7
  • Detailed tutorial on installing Zabbix 3.2 on CentOS 7.2

<<:  The architecture and practice of synchronizing Meituan DB data to the data warehouse

>>:  Using JS to implement a small game of aircraft war

Recommend

Detailed tutorial on Docker pulling Oracle 11g image configuration

Without further ado Start recording docker pullin...

JavaScript implements mouse drag to adjust div size

This article shares the specific code of JavaScri...

Navigation Design and Information Architecture

<br />Most of the time when we talk about na...

The difference between MySQL execute, executeUpdate and executeQuery

The differences among execute, executeUpdate, and...

Detailed explanation of MySQL combined index method

For any DBMS, indexes are the most important fact...

How to use history redirection in React Router

In react-router, the jump in the component can be...

Deep understanding of JavaScript syntax and code structure

Table of contents Overview Functionality and read...

Detailed explanation of Docker working mode and principle

As shown in the following figure: When we use vir...

Summary of the use of html meta tags (recommended)

Meta tag function The META tag is a key tag in th...

Some suggestions on Vue code readability

Table of contents 1. Make good use of components ...

Javascript File and Blob Detailed Explanation

Table of contents File() grammar parameter Exampl...

Solution to forget password when installing MySQL on Linux/Mac

Preface This article mainly introduces the releva...

Detailed explanation of DOM style setting in four react components

1. Inline styles To add inline styles to the virt...

Detailed explanation of eight methods to achieve CSS page bottom fixed

When we are writing a page, we often encounter a ...