Five minutes to deploy a complete set of Zabbix

Zabbix- Installation and Use

Installation NTP
yum install -y ntp
Ntp.conf configuration
cd / etc / 
vim the ntp.conf 
# talk about adding content after opening the 
server cn.ntp.org.cn
Enable NTP synchronization
enable ntpd systemctl 
# added successfully will be 
the Created symlink from /etc/systemd/system/multi-user.target.wants/ntpd.service to / usr / lib / systemd / System / ntpd.service. 
# start with the following command 
syatemctl start ntpd

Mysql installation

Create a database
mysql -uroot -p # entered into the database root account password to access, root login is
# 创建zabbix库
mysql> create database zabbix character set utf8 collate utf8_bin;
Query OK, 1 row affected (0.03 sec)
Zabbix yum configuration source
rpm -ivh http://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-release-3.4-2.el7.noarch.rpm
Zabbix installation package
 yum install -y zabbix-server-mysql zabbix-web-mysql zabbix-agent mariadb-server
 cd /usr/share/doc/zabbix-server-mysql-3.4.15/
Introducing initial mode
 zcat create.sql.gz |mysql -uroot zabbix
Modify zabbix.conf
vi / etc / zabbix / zabbix_server.conf 
 # modify local 
DBHost = localhost # the data hostname 
DBName = zabbix # database instance 
DBUser = zabbix # Username 
DBPassword = # password zabbix
Start zabbix Service
 systemctl enable zabbix-server
Configuration zabbix.conf time
the /etc/httpd/conf.d/ vim zabbix.conf 
 view text line number:    the SET Number The 
 modified line 20, 
 php_value date.timezone Asia / on Shanghai

Start httpd service after the modification is completed

systemctl start httpd

The httpd set to boot

systemctl enable httpd

# Created symlink from /etc/systemd/system/multi-user.target.wants/httpd.service to /usr/lib/systemd/system/httpd.service.

Start zabbix-agent service

systemctl start zabbix-agent

The zabbix-agent service is set to boot from the start

sysytemctl enable zabbix-agent
To this step after, then we will install a Web interface, open the browser, enter: http: // server IP / zabbix / setup.php

 

Web Interface Installation

first step

The second step, make sure that all conditions are met, if satisfaction is ok

The third step, enter the database information, the database has been created to ensure in advance.

The fourth step, enter Zabbbix Server information.

 

Details fifth step, review the settings of

The sixth step, the installation is complete, the following appears

 

The seventh step, return to the landing page, the default login account: Admin (case sensitive), password: zabbix

Step eight, will replace English into Chinese.

All configurations

 

Guess you like

Origin www.cnblogs.com/wuyongcong/p/11217190.html