实验环境:Centos7.0
IP:192.168.47.140
关闭iptables及setenforce
导入源 rpm -ivh
安装zabbix包
安装完成
安装mysql源
wget
rpm -ivh mysql-community-release-el7-5.noarch.rpm
yum install -y mysql-community-server
安装完成
启动mysql服务
设置mysql
mysql_secure_installation
登陆mysql
mysql -uroot -p
创建相关数据库
create database zabbix character set utf8 collate utf8_bin; grant all privileges on zabbix.* to zabbix@localhost identified by 'zabbix';
切换目录 复制文件
cd /usr/share/doc/zabbix-server-mysql-3.0.13
zcat create.sql.gz | mysql -uroot -p zabbix
修改配置文件
DBHost=localhost DBName=zabbix DBUser=zabbix DBPassword=zabbix vim /etc/zabbix/zabbix_server.conf
启动zabbix-server
修改zabbix配置
vim /etc/httpd/conf.d/zabbix.con
php_value date.timezone Asia/Shanghai
启动http服务
systemctl start httpd
访问测试