站在巨人的肩膀上
part.0
系统版本:centos 7
zabbix版本: zabbix 3.0
part.1 下载zabbix的repo文件
# rpm -i http://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/zabbix-release-3.0-2.el7.noarch.rpm
part.2 安装zabbix server,agent,frontend
# yum install zabbix-server-mysql zabbix-web-mysql zabbix-agent
part.3 创建mysql初始数据库
# mysql -uroot -p
# password
mysql> create database zabbix character set utf8 collate utf8_bin;
mysql> grant all privileges on zabbix.* to zabbix@localhost identified by 'password';
mysql> quit;
part.4 导入zabbix数据库
# zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -p zabbix
part.5 修改配置文件
# vi /etc/zabbix/zabbix_server.conf
DBHost=localhost
DBName=zabbix
DBUser=zabbix
DBPassword=password
part.6 修改zabbix frontend php文件
vi /etc/httpd/conf.d/zabbix.conf
php_value max_execution_time 300
php_value memory_limit 128M
php_value post_max_size 16M
php_value upload_max_filesize 2M
php_value max_input_time 300
php_value always_populate_raw_post_data -1
# php_value date.timezone Europe/Riga
php_value date.timezone Asia/Shanghai
part.7 完成安装
在http://ipserver/zabbix中完成安装即可。