1. Install lnmp first. I will not talk about it here.
2. Install necessary components
Yum-y install mysql-devel libcurl-devel net-snmp-devel
3. Add a user
Groupadd zabbix
Useradd zabbix-g zabbix
4. Create a database
Create database zabbix character set utf8;
Grant all privileges on zabbix. * to zabbix @ localhost identified by 'zabbix ';
5. Install and compile zabbix
Wget http://jaist.dl.sourceforge.net/project/zabbix/ZABBIX%20Latest%20Stable/2.2.7/zabbix-2.2.7.tar.gz
Tar zxvf zabbix-2.2.7.tar.gz
Cd zabbix-2.2.7
./Configure -- prefix =/usr/local/zabbix -- enable-server -- enable-agent \
-- With-mysql -- with-net-snmp -- with-libcurl
Make install
6. Import database
Mysql-uzabbix-pzabbix-hlocalhost zabbix <database/mysql/schema. SQL
Mysql-uzabbix-pzabbix-hlocalhost zabbix <database/mysql/images. SQL
Mysql-uzabbix-pzabbix-hlocalhost zabbix <database/mysql/data. SQL
7. Modify the configuration file
Cp misc/init. d/fedora/core/zabbix_server/etc/init. d/
Cp misc/init. d/fedora/core/zabbix_agentd/etc/init. d/
Cp-R frontends/php/home/wwwroot/default/zabbix # This directory is adjusted according to your website directory
Sed-I's/^ DBUser =. * $/DBUser = zabbix/g'/usr/local/zabbix/etc/zabbix_server.conf # Database username
Sed-I's/^. * DBPassword =. * $/DBPassword = zabbix/g'/usr/local/zabbix/etc/zabbix_server.conf # database password
Sed-I's/# DBSocket = \/tmp \/mysql. sock/DBSocket =\/ tmp \/mysql. sock/g'/usr/local/zabbix/etc/zabbix_server.conf
Sed-I's/BASEDIR =\/ usr \/local \/zabbix/g'/etc/init. d/zabbix_server
Sed-I's/BASEDIR =\/ usr \/local \/zabbix/g'/etc/init. d/zabbix_agentd
8. Start the service
/Etc/init. d/zabbix_server start
/Etc/init. d/zabbix_agentd start
Echo "/etc/init. d/zabbix_server start">/etc/rc. local
Echo "/etc/init. d/zabbix_agentd start">/etc/rc. local
9. Install the web client and access http: // ip/zabbix
The default username and password are admin: zabbix.
10. Language adjustment and localization
Open/include/locales. inc. php
Modify 'zh _ cn' => array ('name' => _ ('Chinese (zh_CN) '), 'display' => false) to true.
Click Profile in the upper-right corner of zabbix, and select Chinese (zh_CN) in Language)
Upload C:/Windows/Fonts/simkai. ttf (the download link is shown below) to the fonts directory of zabbix.
Modify the configuration file:
# Cd/home/wwwroot/default/zabbix/# My zabbix installation directory # sed-I's/DejaVuSans/simkai/g'./include/defines. inc. php