CentOS 7.1 install Zabbix2.5 (Zabbix3.0 Alpha version) tutorial

Source: Internet
Author: User
Tags character set prepare snmp centos create database

Installation environment

System: CentOS7.1
Apache: 2.4.6
MySQL: 5.6.26
PHP: 5.6.12
Before Zabbix installation

Obtain Zabbix2.5 source code

# Cd/tmp
# Wget 'http: // response'
# Tar-zxvf zabbix-2.5.0.tar.gz

Add zabbix user

# Groupadd zabbix
# Useradd-g zabbix

Create a Zabbix Database

# Mysql-uroot
Mysql> create database zabbix character set utf8 collate utf8_bin;
Mysql> grant all privileges on zabbix. * to zabbix @ localhost identified by 'yourpassword ';
Mysql> exit

Import data

# Cd/tmp/zabbix-2.5.0/database/mysql
# Mysql-uroot zabbix <schema. SQL
# Mysql-uroot zabbix <images. SQL
# Mysql-uroot zabbix <data. SQL

Compile and install Zabbix

Prepare for compilation and installation

# Yum-y install gcc libxml2-devel net-snmp-devel libcurl-devel

Prepare for compilation

# Cd/tmp/zabbix-2.5.0
#./Configure -- enable-server -- enable-agent -- with-mysql -- enable-ipv6 -- with-net-snmp -- with-libcurl -- with-libxml2

~ Omitted ~
Configuration:

Detected OS: linux-gnu
Install path:/usr/local
Compilation arch: linux

Compiler: gcc
Compiler flags: -g-O2-I/usr/include/mysql-g-m64-fPIC-g-fabi-version = 2-fno-omit-frame-pointer-fno-strict-aliasing -I/usr/include/libxml2-I/usr/local/include-I/usr/lib64/perl5/CORE-I. -I/usr/include

Enable server: yes
Server details:
With database: MySQL
WEB Monitoring: cURL
Native Jabber: no
SNMP: yes
IPMI: no
SSH: no
ODBC: no
Linker flags:-rdynamic-L/usr/lib64/mysql-L/usr/lib64
Libraries:-lm-ldl-lresolv-lmysqlclient-lxml2-lnetsnmp-lcurl

Enable proxy: no

Enable agent: yes
Agent details:
Linker flags:-rdynamic
Libraries:-lm-ldl-lresolv-lcurl

Enable Java gateway: no

LDAP support: no
IPv6 support: yes

**************************************** *******************
* Now run 'make install '*
**
* Thank you for using Zabbix! *
**
**************************************** *******************
Compilation and installation

# Make install

After Zabbix is installed

Modify php. ini

# Sed-I-e "s/memory_limit = 128 M/memory_limit = 256 M/g"/etc/php. ini
# Sed-I-e "s/post_max_size = 8 M/post_max_size = 16 M/g"/etc/php. ini
# Sed-I-e "s/max_execution_time = 30/max_execution_time = 300/g"/etc/php. ini
# Sed-I-e "s/max_input_time = 60/max_input_time = 300/g"/etc/php. ini
# Sed-I-e "s/; date. timezone =/date. timezone = Asia \/Chongqing/g"/etc/php. ini
# Sed-I-e "s/; always_populate_raw_post_data/g"/etc/php. ini

Modify Zabbix configuration file

Modify the DBName, DBUser, and DBPassword parameters. They must be consistent with the database name, user name, and password configured in MySQL.

# Vi/usr/local/etc/zabbix_server.conf
DBHost = localhost
DBName = zabbix
DBUser = zabbix
DBPassword = YOURPASSWORD
# Mkdir/var/www/html/zabbix
# Cp-a/tmp/zabbix-2.5.0/frontends/php/*/var/www/html/zabbix
# Chown-R apache: apache/var/www/html/zabbix /*

Start Zabbix

#/Usr/local/sbin/zabbix_server

Start Apache

# Systemctl start httpd

Install Zabbix on the Web page

Start the browser and access http: // YourIP/zabbix

1) click "Next step 」

2) after confirming that all the statuses are OK, click "Next step 」
3) enter the database name, user name, and password and click "Next step 」
4) click "Next step 」
5) click "Next step 」
6) click "Finish 」
Log on to Zabbix
Enter the user name and password and click "Sign in 」. The default username and password are as follows:
  • Username: Admin
  • Password: zabbix
The following is the latest Zabbix2.5 management page.
Related Article

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.