Environment preparation
CentOS 6.x
Zabbix installation of the service side
Reference Zabbix official Installation documentation
Installation Combat
Install Epel source (for no need)
Wget-o/etc/yum.repos.d/epel.repo Http://mirrors.aliyun.com/repo/epel-6.repo
Installing the MySQL server
Yum Install Mysql-server
Official source for installing Zabbix
RPM-IVH http://repo.zabbix.com/zabbix/2.4/rhel/6/x86_64/zabbix-release-2.4-1.el6.noarch.rpm
Installing the master side of the Zabbix
Yum Install Zabbix-server-mysql Zabbix-web-mysql
Add MySQL and Zabbix's master side to boot from
Chkconfig httpd onchkconfig mysqld onchkconfig zabbix-server on
-
import Zabbix required libraries into the database
1. start the MySQL server /etc/init.d mysqld start2. create a database where the Zabbix data resides and authorize a user to manage the library mysql -uroot -e "Create database zabbix character set utf8 collate utf8_bin; " mysql -uroot -e "Grant all privileges on zabbix.* to [email protected] identified by ' Zabbix '; " 3. Import Zabbix required data files into the Zabbix database cd /usr/share/doc/zabbix-server-mysql-2.4.7/create/ mysql -uroot zabbix < schema.sql mysql -uroot zabbix < images.sql mysql -uroot zabbix < data.sql
Edit the master configuration file for Zabbix
# vi/etc/zabbix/zabbix_server.conf
Dbhost=localhostdbname=zabbixdbuser=zabbixdbpassword=zabbix
Modify the item to the above
Start the Zabbix service
Service Zabbix-server Start
-
edit httpd profile so Zabbix service can be successfully appache service proxy
# vi/etc/httpd/conf.d/zabbix.conf
php_value max_execution_time 300php_value memory_limit 128mphp_value post_max_size 16Mphp_value upload_max_filesize 2Mphp_value max_input_time 300php_value Date.timezone asia/shanghai
Start the Appache service
/ETC/INIT.D/HTTPD start
Browser Input URL Address
Http://10.0.0.106/zabbix
If you enter a URL, the Zabbix installation interface indicates that the Zabbix server installation is complete
Installation of the Zabbix client
Install Epel source (for no need)
Wget-o/etc/yum.repos.d/epel.repo Http://mirrors.aliyun.com/repo/epel-6.repo
Official source for installing Zabbix
RPM-IVH http://repo.zabbix.com/zabbix/2.4/rhel/6/x86_64/zabbix-release-2.4-1.el6.noarch.rpm
Installing the master side of the Zabbix
Yum Install Zabbix-server-mysql Zabbix-web-mysql
Add Zabbix client to boot
Chkconfig zabbix-agent on
Start the Zabbix client
/etc/init.d/zabbix-agent start
Zabbix Server and Client Installation