centos6.5 installation zabbix3.0

Source: Internet
Author: User
Tags snmp

1: System Environment

Operating system: centos6.5 minimized installation + development Package

Web environment: LNMP (nginx1.10, mysql5.5.48, PHP5.4.40)

2:zabbix version and download

Zabbix-3.0.5.tar.gz

: Http://www.zabbix.com/download

3: Install dependent packages

Yum install net-snmp-devel openipmi-developenssl-devel fping-devel libcurl-devel perl-dbi gcc

4: Add Zabbix User

Useradd-u 8005-m-s/sbin/nologin Zabbix

5: Install and configure source package compilation and installation

Tar XF zabbix-3.0.5.tar.gz-c/usr/local/src/ --Unpacking package

CD/USR/LOCAL/SRC/ZABBIX-3.0.5/ --Enter the catalogue

CD./configure--prefix=/usr/local/zabbix--enable-server--enable-agent--with-mysql=/usr/local/mysql/bin/mysql_ Config--with-net-snmp--with-libcurl

Make install --compile and install

6: Set up database and structure import

Mysql-uroot-p --Entering the database

Mysql>create database Zabbix characterset UTF8; --Create a Zabbix database

Mysql>grant all on zabbix.* to [e-mail protected] identified by ' Zabbix '; --Allow account Zabbix to connect to the database from the computer Zabbix

Mysql>flush privileges; --Overload authorization form

Quit

--Import Zabbix database

Mysql-uroot-p Zabbix </usr/local/src/zabbix-3.0.5/database/mysql/schema.sql

Mysql-uroot-p Zabbix </usr/local/src/zabbix-3.0.5/database/mysql/images.sql

Mysql-uroot-p Zabbix </usr/local/src/zabbix-3.0.5/database/mysql/data.sql

7: Modify the Zabbix configuration file

Vim/usr/local/zabbix/etc/zabbix_server.conf

Dbhost=localhost --database address

Dbname=zabbix --database name

Dbuser=zabbix --Database user name

Dbpassword=zabbix --Database password

Vim/usr/local/zabbix/etc/zabbix_agentd.conf

Unsafeuserparameters=1 --Enable the custom key

8:zabbix Service startup script

cp/usr/local/src/zabbix-3.0.5/misc/init.d/fedora/core/zabbix_server/etc/init.d/

cp/usr/local/src/zabbix-3.0.5/misc/init.d/fedora/core/zabbix_server/etc/init.d/

                                     --Copy startup script to/etc/init.d/

Vim/etc/init.d/zabbix_server

Basedir=/usr/local/zabbix --Modifying the Zabbix installation directory

Vim/etc/init.d/zabbix_agentd

Basedir=/usr/local/zabbix --Modifying the Zabbix installation directory

9: Configure the Web site

Mkdir/usr/local/nginx/html/zabbix --Create Zabbix directory under Nginx

Cp-r/usr/local/src/zabbix-3.0.5/frontends/php/*/usr/local/nginx/html/zabbix

                                    --Copy the Web site to the Zabbix folder under the Nginx default directory

Chown Www.www-R/usr/local/nginx/html/zabbix

10: Start Zabbix

/etc/init.d/zabbix_server start

/etc/init.d/zabbix_agentd start

NETSTAT-ANPLT | grep Zabbix --Start the Zabbix service and view Port Health

Browser input web address Xxx.xxx.xxx.xxx/zabbix

Modify the configuration of the php.ini according to the installation requirements

Vim/usr/local/php/etc/php.ini

Max_input_time = 300

/ETC/INIT.D/PHP-FPM Restart --Modify to complete restart PHP service

Initial account: Admin

Initial Password: Zabbix

Login Successful!

centos6.5 installation zabbix3.0

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.