1.关闭selinux,iptables
2.添加zabbix仓库
# rpm -ivh
3.安装zabbix
# yum install zabbix-server-mysql zabbix-web-mysql zabbix-agent
4.安装mysql
# yum install mysql mysql-server
5.创建了一个zabbix数据库,一个zabbix用户,其密码为zabbix。zabbix用户在本地对zabbix数据库拥有所有权限
# mysql -u root -p
mysql> create database zabbix character set utf8 collate utf8_bin;
mysql> grant all privileges on zabbix.* to zabbix@localhost identified by 'zabbix';
mysql> flush privileges;
6.初始化zabbix数据库
# cd /usr/share/doc/zabbix-server-mysql-2.4.4/create/
# mysql -uroot zabbix < schema.sql
# mysql -uroot zabbix < p_w_picpaths.sql
# mysql -uroot zabbix < data.sql
7.编辑zabbix配置文件
# vim /etc/zabbix/zabbix_server.conf
大概在65行到100行中,有数据库信息,按照之前设置的用户名和密码设置即可
DBPassword=zabbix
8.启动zabbix server
# service zabbix-server start
# service httpd start
9.PHP时区设置,date.timezone设置为Asia/Shanghai。
#vim /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 date.timezone Asia/Shanghai
10.访问地址为:
11.登录用户名密码,Admin\zabbix