Install
install mariadb
yum install mariadb-server mariadb –y
systemctl enable mariadb
systemctl restart mariadb
Install Zabbix3.4
rpm -ivh http://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-release-3.4-1.el7.centos.noarch.rpm
yum install zabbix-server-mysql zabbix-web-mysql -y
configure
create database
mysql
MariaDB [(none)]> create database zabbix character set utf8 collate utf8_bin;
Query OK, 1 row affected (0.00 sec)
MariaDB [(none)]> grant all privileges on zabbix.* to zabbix@localhost identified by 'zabbix';
Query OK, 0 rows affected (0.08 sec)
MariaDB [(none)]> exit
Bye
import database
zcat /usr/share/doc/zabbix-server-mysql-3.4.8/create.sql.gz |mysql -uzabbix -pzabbix zabb
Note: /usr/share/doc/zabbix-server-mysql-xxx is subject to the actual installed version
Configure database user and password
vim /etc/zabbix/zabbix_server.conf
124 # Default:
125 DBPassword=zabbix
Start the zabbix server and set it to start on boot
systemctl enable zabbix-server
systemctl start zabbix-server
Edit Zabbix frontend PHP configuration, change time zone
vim /etc/httpd/conf.d/zabbix.conf
php_value date.timezone Asia/Shanghai
Start httpd and set it to start on boot
systemctl enable httpd
systemctl start httpd
Install Zabbix Web
Browser access and installation
Default user Admin Default password zabbix
zabbxi-agent installation and configuration
Install zabbxi-agent
yum install zabbix-agent –y
Configure zabbxi-agent
vim /etc/zabbix/zabbix_agentd.conf
修改IP地址server IP地址
97 Server=10.10.10.16
138 ServerActive=10.10.10.16
Start zabbxi-agent and set startup
systemctl enable zabbix-agent.service
systemctl restart zabbix-agent.service