0.系统层面
centos7、关闭防火墙、selinux
1.安装源
rpm -i https://repo.zabbix.com/zabbix/3.5/rhel/7/x86_64/zabbix-release-3.5-1.el7.noarch.rpm
2.安装包
yum install zabbix-server-mysql zabbix-web-mysql zabbix-agent
3.数据库的安装
mysql 5.6\PostgreSQL
mysql -uroot -p
mysql> create database zabbix character set utf8 collate utf8_bin;
mysql> grant all privileges on zabbix.* to zabbix@localhost identified by 'zabbixpasswd';
mysql> quit;
4.导入
zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -p zabbix
5.修改密码
/etc/zabbix/zabbix_server.conf
修改密码:
DBPassword=zabbixpassword
- x修改PHP
/etc/httpd/conf.d/zabbix.conf
php_value date.timezone Europe/Riga
7.重启zabbix
systemctl restart zabbix-server zabbix-agent httpd
systemctl enable zabbix-server zabbix-agent httpd
8.登录、配置
http://ip/zabbix