Note, there is no picture, there is time to add it again.
-
Get ready to CentOS6, minimize installation, set IP, test the Internet, turn off SELinux, (later you can turn on SELinux, add Zabbix corresponding ports)
-
To install the Zabbix software Source:
RPM-IVH http://repo.zabbix.com/zabbix/2.4/rhel/6/x86_64/zabbix-release-2.4-1.el6.noarch.rpm
#这个网址根据要安装Zabbix版本的不同会有不同选择
-
Yum installation Zabbix and required environment
Yum install-y mysql mysql-server zabbix-server-mysql zabbix-web-mysql zabbix-agent
-
Create the users and groups required for the Zabbix service to run
GROUPADD-G 201 Zabbix
Useradd-g zabbix-u 201-m Zabbix
-
Initializing the MySQL server
/etc/init.d/mysqld start
-
Create the database and user rights required to run the Zabbix
Mysql-uroot
Create database Zabbix character set UTF8 collate utf8_bin;
--Grant all privileges the zabbix.* to [e-mail protected] identified by ' Zabbix ';
-
Import the initial data of Zabbix into the database
Cd/usr/share/doc/zabbix-server-mysql-2.4.6/create
Mysql-uroot Zabbix < Schema.sql
Mysql-uroot Zabbix < Images.sql
Mysql-uroot Zabbix < Data.sql
-
Modifying the Zabbix configuration
VI/ETC/ZABBIX/ZABBIX_SERVER.CONF (Specific configuration will be organized later)
-
Modify PHP Configuration
Vi/etc/php.ini
Post_max_size =16m
Max_execution_time =300
Max_input_time =300
Date.timezone = Asia/shanghai
Post_max_size = 32M
Restart Service httpd Restart
-
Setting the time zone
Ln-sf/usr/share/zoneinfo/asia/shanghai/etc/localtime
Yum Install Ntpdate
Ntpdate us.pool.ntp.org
-
Set up service to boot
Chkconfig httpd on
Chkconfig zabbix-server on;chkconfig mysqld on;chkconfig zabbix-agent on
-
Confirm opening Apache and Zabbix
/etc/init.d/zabbix-server start
/ETC/INIT.D/HTTPD start
-
On the Web Management page, Zabbix default font will be garbled, under Windows Select a pleasing font renamed to Dejavusans.ttf, replace the server/usr/share/fonts/dejavu/dejavusans.ttf file.
-
Http://serverIP/zabbix
The account password is: Zabbix
This article is from the "Da Chuan" blog, please be sure to keep this source http://hughlew.blog.51cto.com/6164128/1721160