zabbix deployment package installation

 
Zabbix installation on the official website provides several methods, namely: installation deployment package, source installation, the installation vessel. I have written an installation vessel before me, and now it was about the deployment package installed.

 
According to the official website of the argument, we need the following steps:
 

A. Installing LAMP environment

 

1.1 Linux

This one. . . I do not know how to say, the next item.

 

1.2 Apache

yum install -y httpd

 

1.3 Mysql

yum install yum-utils -y
wget https://dev.mysql.com/get/mysql80-community-release-el7-1.noarch.rpm
rpm -ivh mysql80-community-release-el7-1.noarch.rpm 
yum-config-manager --disable mysql80-community
yum-config-manager --enable mysql57-community   
sudo yum install mysql-community-server -y
setenforce 0
/sbin/mysqld --defaults-file=/etc/my.cnf --user=root 

About profile, according to personal taste, to amend its own configuration.
 

1.4 php

yum install -y php

 
So far, LAMP environment to build complete.
 

II. Zabbix installation deployment package

 

2.1 zabbix find the source, and the introduction of the source, mounting the package.

PS: Try to find a higher version. The latest stable release version is zabbix4.4, we can use zabbix4.0 or 4.2 set up.
On the official website , find the response version of the source. I used here is zabbix4.2 version cent7, we can according to their own situation, choose the right version to download.

rpm -Uvh https://repo.zabbix.com/zabbix/4.2/rhel/7/x86_64/zabbix-release-4.2-2.el7.noarch.rpm
yum install -y zabbix-server-mysql zabbix-proxy-mysql zabbix-web-mysql

 

2.2 The establishment of zabbix database, zabbix user and the target database import.

Login mysql database, build zabbix database.

shell> mysql -uroot -p<password>
mysql> create database zabbix character set utf8 collate utf8_bin;
mysql> grant all privileges on zabbix.* to zabbix@localhost identified by '<password>';
mysql> quit;

Import target database:

zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -p zabbix

 

2.3 Check the results into the database

We can check the mysql database to see if there really Table zabbix library. If there is, then it proves that the import was successful.

 

III. Installed

 

3.1 modify /etc/httpd/conf.d/zabbix.conf, uncommented timezone line and modify its time zone is "Asia / Shanghai". Otherwise it will error during installation.

3.2 Input browser ip / zabbix, boot installation can.

Guess you like

Origin www.cnblogs.com/young233/p/11651784.html