Excellentj Follow
0.7 2019.05.17 10:26* Word count 372 read 489 comments 0 likes 6
Official document# rpm -Uvh https:/ /repo.zabbix.com/zabbix/4.2/rhel/7/x86_64/zabbix-release-4.2-1.el7.noarch.rpm``#yum clean all
# yum -y install zabbix-server-mysql zabbix-web-mysql zabbix-agent
# Note: If the above item has been unsuccessfully downloaded, it may be the problem of the first source, or network problem, or yum.repos.d/There are too many sources,
solution:
[ root@m01 ~]# cd /etc/yum.repos.d/[root@m01 /etc/yum.repos.d]# ls
as4k.repo CentOS-CR.repo CentOS-Media.repo default nginx.repo
back CentOS-Debuginfo.repo CentOS-Sources.repo epel.repo zabbix.repo
CentOS-Base.repo CentOS-fasttrack.repo CentOS-Vault.repo epel-testing.repo
# Zabbix.The repo indicates that the first article is successful, but if it still fails to install, it may be because there are too many things in it, and I did not get it. You can try a few more times.,
# If it still doesn’t work, create a directory and leave a zabbix unless all sources are removed..repo try again
# Generally, the download is still unsuccessful, but just move the source back and download again. I tested it twice and it was successful.
# mysql -uroot -p``password``#Enter mysql and perform the following operations ``mysql> create database zabbix character set utf8 collate utf8_bin;''mysql> grant all privileges on zabbix.* to zabbix
[@localhost
] (https://my.oschina.net/u/570656) identified by'password';``mysql> quit;
# zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -p zabbix
Edit the file /etc/zabbix/zabbix_server.conf
DBPassword=password
Edit the file /etc/httpd/conf.d/zabbix.conf, uncomment it and set the correct time zone for you. # php_value date.timezone Asia/Shanghai
Start the Zabbix server and agent process and enable it to start when the system boots:
# systemctl restart zabbix-server zabbix-agent httpd
# Note: After entering the above restart error report is Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe"for details.
# After checking on the Internet, it is because port 80 nginx occupies pkill.
[ root@m01 /etc/yum.repos.d]# netstat -lntup|grep nginx
tcp 000.0.0.0:800.0.0.0:* LISTEN 46352/nginx: master
[ root@m01 /etc/yum.repos.d]# pkill nginx
# systemctl enable zabbix-server zabbix-agent httpd
Now your Zabbix server is up and running!
Connect to the newly installed Zabbix frontend: http://server_ip_or_name/zabbix
Follow the steps described in the Zabbix document: Official document installation front end
Please refer to Official Getting Started Guide
Step practice
I am using Google Chrome, you can right-click and select Translate to Chinese
Note: 4.2 version support is about to end
Take a little gift away, come to Jianshu and follow me
( adsbygoogle = window.adsbygoogle || []).push({});
Recommended Posts