Zabbix 3.0 Installation
Original Address http://mp.weixin.qq.com/s?__biz=MzA5NjgwNzM0OQ==&mid=401897477&idx=1&sn= 9eda7c22a93b89e30cd1672af19a9c84&scene=23&srcid=02178aigachxnk08v8ea6z37#rd
2016-02-17 admin Oneoaas
Zabbix 3.0 for CentOS6 installation
1 Overview 2install MySQL3Install Web4Installing Zabbix-server5Configure the Web1Overview
For 3.0, the official only provide CentOS7 RPM package, Ubuntu Deb Package, for CENTOS6, the default does not provide RPM package, in order to take care of the use of CentOS6 brothers, and do not want to use the source of the installation of the brother, small series deliberately prepared CentOS6 installation package, I hope you have fun.
Environmental requirements
PHP >= 5.4 (CentOS6 default is 5.3.3, update required)
Curl >= 7.20 (need to be updated to support SMTP authentication)
To support CentOS6, the following projects have been established
Recommended items
https://github.com/zabbixcn/zabbix3.0-rpm.githttps://github.com/zabbixcn/curl-rpm
650) this.width=650; "Src=" http://mmbiz.qpic.cn/mmbiz/ Czv2hrpuapjeiibb1uyw1vmpzscnxrekzvxeh23qb9kgpqfq3uoyby3m93pcfounrvjkyvrtfvxmworbbuwaz4a/0?wxfrom=5&tp=webp &wx_lazy=1 "style=" Margin:0px;padding:0px;height:auto;width:auto; "alt=" 0?wxfrom=5&tp=webp&wx_lazy=1 "/>
2 install MySQL
MySQL recommends the use of version 5.6, CentOS6 default is 5.1, not recommended for use, low performance
rpm-ivh Http://dev.mysql.com/get/mysql-community-release-el6-5.noarch.rpmyum install mysql-server-y # This process will be slow due to network problems, please wait patiently
vim/etc/my.cnf
[Mysqld]innodb_file_per_tableservice mysqld start mysql_secure_installation
enter current password to root (enter for none): Set root password? [y/n] Remove anonymous users? [y/n] Disallow Root login remotely? [y/n] Remove test database and access to it? [y/n] Reload privilege tables now? [y/n]
mysql-uroot-pmysql> CREATE DATABASE zabbix CHARACTER SET UTF8 COLLATE utf8_bin;mysql> GRANT all privileges on zabbix.* to [e-mail protected] identified by ' Zabbix ';mysql> show databases;
+--------------------+ | Database | +--------------------+ | Information_schema | | MySQL | | Performance_schema | | Zabbix | +--------------------+
3 Install Web
Zabbix 3.0 has a minimum requirement of 5.4 for PHP, while CentOS6 defaults to 5.3.3, completely does not meet the requirements, it is necessary to use third-party sources, PHP upgrade to more than 5.4, note that does not support PHP7
SSH Login to your CentOS6 x64 system, run the following command with the root user
git clone https://github.com/zabbixcn/zabbix3.0-rpm.git
CD Zabbix3.0-rpm/rpms
RPM-IVH http://repo.webtatic.com/yum/el6/latest.rpm
Yum install zabbix-web-mysql-3.0.0-1.el6.noarch.rpm zabbix-web-3.0.0-1.el6.noarch.rpm httpd php56w php56w-gd Php56w-mysql php56w-bcmath php56w-mbstring php56w-xml php56w-ldap
sed-i "[Email protected]# php_value date.timezone europe/[email protected]_value date.timezone Asia/[email Protected] "/etc/httpd/conf.d/zabbix.conf
/etc/init.d/httpd Restart
cd/usr/share/zabbix-server-mysql-3.0.0
Zcat create.sql.gz | Mysql-uzabbix-pzabbix Zabbix
4 Installing Zabbix-server
yum localinstall zabbix-server-mysql-3.0.0-1.el6.x86_64.rpmvi /ETC/ZABBIX/ZABBIX_SERVER.CONFDBHOST=LOCALHOSTDBNAME=ZABBIXDBUSER=ZABBIXDBPASSWORD=ZABBIX
/etc/init.d/zabbix-server Restart if everything is OK, the log will look like this:
5 Configure the Web
Http://${ip}/zabbix, as in previous versions, is no longer detailed here !
650) this.width=650; "title=" 1455686070316326.png "src=" http://mmbiz.qpic.cn/mmbiz/ 195lknf3rvpvjviewicqlvn4uuwekwdscic4fao4tbtpskgtlobiasuey4zvmsoibshibjueflokg8oxdw5e5bia0a/640?wx_fmt=png& Tp=webp&wxfrom=5&wx_lazy=1 "style=" Margin:0px;padding:0px;height:auto;width:auto; "alt=" 640?wx_fmt=png &tp=webp&wxfrom=5&wx_lazy= "/>
If you are CentOS7 live Ubuntu, please refer to the official documentation for direct installation
Https://www.zabbix.com/documentation/3.0/manual/installation/install_from_packages
650) this.width=650; "Src=" http://mmbiz.qpic.cn/mmbiz/ Czv2hrpuapjeiibb1uyw1vmpzscnxrekzvxeh23qb9kgpqfq3uoyby3m93pcfounrvjkyvrtfvxmworbbuwaz4a/0?wxfrom=5&tp=webp &wx_lazy=1 "style=" Margin:0px;padding:0px;color:rgb (62,62,62); Font-size:15px;line-height:24px;text-align: Center;height:auto;width:auto; "alt=" 0?wxfrom=5&tp=webp&wx_lazy=1 "/>
650) this.width=650; "Width=" 295 "src=" http://mmbiz.qpic.cn/mmbiz/ Iagswiccbwm69z6snia7mwiavvmkvmlmo4tbiam4kk33yznvyeyojo3qhiaach59puhguoar9qnwjlq2ab7o8jowla/0?wx_fmt=gif&tp =webp&wxfrom=5&wx_lazy=1 "style=" margin:0px;padding:0px;height:auto;width:295px; "alt=" 0?wx_fmt=gif& Tp=webp&wxfrom=5&wx_lazy=1 "/>
650" this.width=650; "title=" 1455621973733218.png "width=" height= "src=" http://mmbiz.qpic.cn/mmbiz/ 195lknf3rvpvjviewicqlvn4uuwekwdscqajpniccztqo0ph7hibsxicbxm5votojaqpkjws69qea5clrp2lqiciczrq/640?wx_fmt=png &tp=webp&wxfrom=5&wx_lazy=1 "style=" MARGIN:0PX;PADDING:0PX;HEIGHT:AUTO;WIDTH:76PX; "alt=" 640?wx_fmt= Png&tp=webp&wxfrom=5&wx_lazy= "/> More wonderful, click below" Read the original text to view.
This article is from "Itnihao's operation and Maintenance Technology blog" blog, please be sure to keep this source http://itnihao.blog.51cto.com/1741976/1742701
Zabbix 3.0 Installation