1、安装MySQL
1 2 |
#rpm -ivh http://dev.mysql.com/get/mysql-community-release-el6-5.noarch.rpm
|
1 2 3 4 5 6 7 8 |
service mysqld start
|
1 2 3 4 5 |
mysql -uroot -p
|
更改数据库配置文件,记得重启服务
1 |
#vim /etc/my.cnf
|
1 2 3 4 5 6 7 8 9 |
[mysqld]
|
2、安装PHP5.6
1 2 3 4 5 6 |
#rpm -ivh http://repo.webtatic.com/yum/el6/latest.rpm
|
3、安装依赖包和zabbix-server相关包
1 2 3 4 5 6 7 8 9 10 11 12 13 |
#yum -y install httpd libxml2-devel net-snmp-devel libcurl-devel
|
4导入zabbix数据库
1 2 3 |
#cd /usr/share/doc/zabbix-server-mysql-3.0.8/
|
5、创建vhost.conf文件
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
#cd /etc/http/conf.d/
|
创建/etc/httpd/conf.d/zabbix.conf文件
1 2 3 4 5 6 7 |
php_value max_execution_time 300
|
启动httpd
1 |
#/etc/init.d/httpd start
|
6、配置zabbix_server.conf文件
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
#cat /etc/zabbix/zabbix_server.conf | egrep -v "^$|^#"
|
启动zabbix server服务
1 |
#/etc/init.d/zabbix-server start
|
7、访问zabbix web并配置
访问http://$IP/zabbix 进行配置