Download use rpm and install the Zabbix installation package:
# RPM-IVH http://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/zabbix-release-3.0-1.el7.noarch.rpm
Install the relevant plug-ins and databases, some plug-ins because of the useless, we can study on their own.
# yum Install zabbix-server-mysql zabbix-web-mysql php php-gd php-mysql php-bcmath php-mbstring php-xml Curl curl-devel NE T-snmp gcc net-snmp-devel perl-dbi
# yum Install httpd mariadb*
Database configuration
#systemctl Start Mariadb.service
# mysql-u Root-p
Enter Password: # #输入MySQL密码, default is empty
MariaDB [(None)]> CREATE database Zabbix character set UTF8; # #创建数据库zabbix, and database encoding uses UTF8
MariaDB [(None)]> insert into Mysql.user (Host,user,password) >values (' localhost ', ' Zabbix ', PASSW Ord (' Zabbix ')); # #新建账户zabbix, Password Zabbix (can be arbitrarily changed to yourself or more complex.)
MariaDB [(None)]> flush privileges; # #刷新系统授权
MariaDB [(none)]> grant all on zabbix.* to ' Zabbix ' @ 'localhost' identified by ' Zabbix '; # #允许账户能从本机连接至数据库zabbix, Red places some tutorials are written in 127.0.0.1, so the following configuration will be 127.0.0.1, otherwise you will find Zabbix no data.
MariaDB [(None)]> flush privileges;
Import Database
# cd/usr/share/doc/zabbix-server-mysql-3.0.1
# Zcat Create.sql.gz | Mysql-uroot-p root_passwd Zabbix
Modify the database root password to ROOT_PASSWD (after importing the database file, change the root password to your own
Mysqladmin-u Root Password root_passwd
Modifying a configuration file
# vi/etc/zabbix/zabbix_server.conf
81:dbhost=localhost # #数据库主机
91:dbname=zabbix # #数据库名
107:dbuser=zabbix # #数据库用户名
115:dbpassword=zabbix # #数据库密码
305:listenip=127.0.0.1 # #数据库IP地址
Start the Zabbix_server service
# Systemctl Start Zabbix-server
Modifying an HTTP configuration file
# VI /etc/httpd/conf.d/zabbix.conf
Php_value Max_execution_time 300
Php_value Memory_limit 128M
Php_value post_max_size 16M
Php_value upload_max_filesize 2M
Php_value Max_input_time 300
Php_value Always_populate_raw_post_data-1
# Php_value Date.timezone Asia/shanghai
Start the httpd service
# Systemctl Start httpd
Modifying the configuration file requires restarting the machine:
# Vi/etc/selinux/config
Change Selinux=enforcing to Selinux=disabled
Start the database, Zabbix-server, and HTTTPD after restarting the machine
Systemctl Start Mariadb.service
Systemctl Start Zabbix-server
Systemctl Start httpd
Open Http://ip/zabbix
All the way next.
Add Chinese
VI /var/www/html/zabbix/include/locales.inc.php
Change the ' zh_cn ' = = [' name ' = ' = ' (' Chinese (zh_cn) '), ' display ' = false] to True
Because it is small white, will not make these three services from the start, so in/home under VI edited a qidong.sh file to write the following content:
#!/bin/sh
Systemctl Start Mariadb.service
Systemctl Start Zabbix-server
Systemctl Start httpd
Save and execute in the/home directory
chmod u+x qidong.sh
To boot from the start
This article is from "Happy" blog, please make sure to keep this source http://7804011.blog.51cto.com/7794011/1750745
Install zabbix3.0 Chinese version