Install Zabbix 2.0.6 in 64-bit CentOS 6.2

Source: Internet
Author: User
Tags php mysql import database

Install Zabbix 2.0.6 in 64-bit CentOS 6.2

Install Zabbix 2.0.6 in 64-bit CentOS 6.2

1. install components

Yum install make mysql-server httpd php mysql-devel gcc net-snmp-devel curl-devel p3rl-DBI php-gd php-mysql php-bcmath php-mbstring php-xml-y

Useradd zabbix

2. Start mysql
Service mysqld start
Mysqladmin-u root password root
Mysql-u root-p

Enter the password root
3. Create a zabbix Database
Mysql> create database zabbix character set utf8;
Mysql> grant all on zabbix. * TO zabbix @ 'localhost' identified by 'zabbixpass ';
Mysql> flush privileges;
4. Import Database SQL
Zabbix-2.0.6/database/mysql
Mysql-h localhost-uroot-proot zabbix <schema. SQL

Mysql-h localhost-uroot-proot zabbix <images. SQL
Mysql-h localhost-uroot-proot zabbix <data. SQL
5. Adjust the current time (if this time is correct, do not adjust it)
Date-s "20:48:55"
6. Compile and install
./Configure -- with-mysql -- with-net-snmp -- with-libcurl -- enable-server -- enable-agent -- enable-proxy -- prefix =/usr/local/zabbix
Make & make install
7. Add a port
Vim/etc/services

Zabbix-agent 10050/tcp # Zabbix Agent
Zabbix-agent 10050/udp # Zabbix Agent
Zabbix-trapper 10051/tcp # Zabbix Trapper
Zabbix-trapper 10051/udp # Zabbix Trapper

8. modify the configuration file
Modify/etc/httpd/conf/httpd. conf
DirectoryIndex index.html. var index. php
Modify the/usr/local/zabbix/etc/zabbix_server.conf parameter:
DBName = zabbix
DBUser = root
DBPassword = root

Cp misc/init. d/Fedora/core5/zabbix_server/etc/init. d/
Cp misc/init. d/fedora/core5/zabbix_agentd/etc/init. d/
Chmod 700/etc/init. d/zabbix _*


Vim/etc/init. d/zabbix_server
Modify
ZABBIX_BIN = "/usr/local/sbin/zabbix_server"
Is
ZABBIX_BIN = "/usr/local/zabbix/sbin/zabbix_server"
Vim/etc/init. d/zabbix_agentd
Modify
ZABBIX_BIN = "/usr/local/sbin/zabbix_agentd"
Is
ZABBIX_BIN = "/usr/local/zabbix/sbin/zabbix_agentd"
9. Start the service and set startup
/Etc/init. d/zabbix_server start
/Etc/init. d/zabbix_agentd start


Chkconfig zabbix_server on
Chkconfig zabbix_agentd on
10. Modify php Parameters
# Vi/etc/php. ini: Find the following items and change them to the following values. There is a; number to be deleted.
Max_execution_time= 300
Max_input_time= 300
Date. timezone = PRC
Post_max_size = 32 M


Restart httpd
/Etc/init. d/httpd restart

11. Configure the PHP File
# Cd zabbix-2.0.6
# Cd frontends/
# Cp-rf php/var/www/html/
# Cd/var/www/html
# Mv php zabbix
# Chown-R zabbix: zabbix

Log on to http: // ip/zabbix

When DB is configured, the mysql account and password are both root,

The last step shows fail. Then, follow the prompts to download the zabbix. conf. php file cp to/var/www/html/conf/

Last display
Configuration file
"/Var/www/html/zabbix/conf/zabbix. conf. php"
Created: OK

After the installation is successful, the initial Logon account admin and password zabbix

For more details, please continue to read the highlights on the next page:

  • 1
  • 2
  • Next 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.