Zabbix Server Installation configuration and zabbix installation Configuration

Source: Internet
Author: User
Tags php mysql

Zabbix Server Installation configuration and zabbix installation Configuration

1. Install httpd, mysql, and php

yum install httpd php mysql mysql-devel php-xmlwriter php-gd php-mbstring php-bcmath php-mysql

2.download and install zabbix-2.2.6.tar.gz

Tar zxvf zabbix-2.2.6.tar.gz-C/usr/local/src/# unzip useradd zabbix-s/sbin/nologin # Add zabbix user yum install net-snmp-devel curl-devel # Install dependency package cd/usr/local/src/zabbix-2.2.6 # enter the installation directory. /configure -- prefix =/usr/local/zabbix -- enable-server -- enable-agent -- enable-proxy -- with-net-snmp -- with-libcurl -- with-mysql =/usr /bin/mysql_configmake # compile make install # install ln-s/usr/local/zabbix/sbin/*/usr/local/sbin/# Add the system command ln-s/usr/ local/zabbix/bin/*/usr/local/bin/# Add a system command

3. Create a zabbix Database

Mysql-u root-p # Enter MySQL console create database zabbix character set utf8; # create database zabbix and use utf8 to insert into mysql for database encoding. user (Host, User, Password) values ('localhost', 'zabbix', password ('000000'); # create an account named zabbix with the Password 123456 grant all on zabbix. * to 'zabbix' @ 'localhost' identified by '000000' with grant option; # Allow the account zabbix to connect to the database zabbix flush privileges from the local machine; # refresh system authorization table use zabbix # Enter database source/usr/local/src/zabbix-2.2.6/database/mysql/schema. SQL # import the script file to zabbix database source/usr/local/src/zabbix-2.2.6/database/mysql/images. SQL # import the script file to zabbix database source/usr/local/src/zabbix-2.2.6/database/mysql/data. SQL # import the script file to the zabbix Database

4. modify the configuration file

Vim/usr/local/zabbix/etc/zabbix_server.conf DBName = zabbix # Database Name DBUser = zabbix # database username DBPassword = 123456 # Database Password ListenIP = 127.0.0.1 # Database IP address region =/usr/ local/zabbix/share/zabbix/alertscripts vim/usr/local/zabbix/etc/zabbix_agentd.conf Include =/usr/local/zabbix/etc/users/UnsafeUserParameters = 1 key

5. Add a STARTUP script

Cp/usr/local/src/zabbix-2.2.6/misc/init. d/fedora/core/zabbix_server/etc/rc. d/init. d/zabbix_server # server cp/usr/local/src/zabbix-2.2.6/misc/init. d/fedora/core/zabbix_agentd/etc/rc. d/init. d/zabbix_agentd # client chmod + x/etc/rc. d/init. d/zabbix_server # Add the script execution permission chmod + x/etc/rc. d/init. d/zabbix_agentd # Add the script execution permission chkconfig zabbix_server on # Add the boot start chkconfig zabbix_agentd on # Add boot start

5.1 modify the zabbix installation directory in the zabbix boot script

Vim/etc/rc. d/init. d/zabbix_server # edit the server configuration file BASEDIR =/usr/local/zabbix/# zabbix installation directory vim/etc/rc. d/init. d/zabbix_agentd # edit the client configuration file BASEDIR =/usr/local/zabbix/# zabbix installation directory

6. Configure the web site

cd /usr/local/src/zabbix-2.2.6cp -r /usr/local/src/zabbix-2.2.6/frontends/php /var/www/html/zabbixchown apache.apache -R /var/www/html/zabbix

7. Modify php configuration file Parameters

Vim/etc/php. ini # edit and modify date. timezone = PRC post_max_size = 16 M max_execution_time = 300 max_input_time = 300

8. Install the web interface

Open http: // IP/zabbix/setup. php In the browser to start installation.

9. Others can refer to http://www.osyunwei.com/archives/7984.html

 

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.