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

CentOS7 installation zabbix 4.0tutorial (illustrated in detail)

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

Close SeLinux

Setenforce 0

Permanently close:

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 apacheyum install-y httpd# httpd service boot for self-boot systemctl enable httpd# start httpd service systemctl start httpd

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

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

Install the 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 the initial database

# mysql-uroot-ppasswordmysql > 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 scripts into the zabbix database

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

Decompress:

Gunzip create.sql.gz

Log in to mysql

Mysql-u root-p # just enter the password

Switch data

Use zabbix

Import sql

Source create.sql

Quit

Quit

Configure the database for the zabbix server

Vi / etc/zabbix/zabbix_server.conf

DBPassword=zabbix

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

Vi / etc/httpd/conf.d/zabbix.conf

Configuration time

Php_value date.timezone Asia/Shanghai

Start

# 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:

Log in under ok:

The login account is Admin

The password is zabbix

Sinicization configuration

Set up Chinese:

What is displayed is Chinese:

Summary

The above is the CentOS7 installation zabbix 4.0tutorial introduced by the editor to you. I hope it will be helpful to you. If you have any questions, please leave me a message and the editor will reply you in time. Thank you very much for your support to the website!

If you think this article is helpful to you, you are welcome to reprint it, please indicate the source, thank you!

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

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report