Install Zabbix on CentOS7

rpm -i http://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-release-3.4-2.el7.noarch.rpm
install repository with MySQL database

yum install zabbix-server-mysql zabbix-web-mysql zabbix-agent
Install Zabbix server, front-end, agent
Press Y twice to confirm

mysql -uroot -p
Log in to the database and
enter the password
Abcdef@123456

create database zabbix character set utf8 collate utf8_bin;
create a zabbix library

grant all privileges on zabbix.* to zabbix@localhost identified by 'Abcdef@123456';
给zabbix用户授权

quit;
exit

zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -p zabbix
import initial schema and data
input password
Abcdef@123456

vim /etc/zabbix/zabbix_server.conf
Modify the zabbix configuration file
to find # DBPassword=
uncomment#, change to DBPassword=Abcdef@123456
find # DBPassword=
uncomment

vim /etc/httpd/conf.d/zabbix.conf
Modify the PHP time zone
to find # php_value date.timezone Europe/Rome
uncomment #, change to php_value date.timezone Asia/Shanghai

vim /etc/httpd/conf/httpd.conf Change
the default port number of Apache from Listen 80 to Listen 8989

firewall-cmd --zone=public --permanent --add-port=8989/tcp
firewall-cmd --reload
open firewall port 8989

vim /etc/selinux/config
find SELINUX=enforcing and change it to SELINUX=disable
setenforce 0
After this command is used, it can take effect without restarting

systemctl restart zabbix-server zabbix-agent httpd
systemctl enable zabbix-server zabbix-agent httpd
starts Zabbix server and agent processes and starts at system boot

Visit http://192.168.1.13:8989/zabbix/

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324644005&siteId=291194637