CentOS7 installation zabbix 4.0tutorial (illustrated in detail)
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!