标签:res 配置文件 hang mirror x86_64 zabbix配置 release code rac
准备环境OS centos7.4
Zabbix version:3.4.2
Database:MariaDB
yum -y install mariadb-server
systemctl start mariadb && systemctl enable mariadb
rpm -i http://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-release-3.4-2.el7.noarch.rpm
wget https://mirrors.tuna.tsinghua.edu.cn/zabbix/zabbix/3.4/rhel/7/x86_64/zabbix-release-3.4-2.el7.noarch.rpm
yum -y install zabbix-server-mysql zabbix-web-mysql zabbix-agent
mysql> create database zabbix character set utf8 collate utf8_bin;
mysql> grant all on zabbix.* to zabbix@‘172.20.29.%‘ identified by ‘rilegou‘;
mysql> flush privileges;
mysql> quit;
zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -h 172.20.29.209 -p zabbix
#查看修改的配置文件
grep -n ‘^‘[a-Z] /etc/zabbix/zabbix_server.conf
vim /etc/zabbix/zabbix_server.conf
DBHost= #添加数据库主机地址
DBPassword= #添加数据库用户密码
vim /etc/httpd/conf.d/zabbix.conf
php_value date.timezone Asia/Shanghai #修改时区
systemctl restart zabbix-server zabbix-agent httpd
systemctl enable zabbix-server zabbix-agent httpd
标签:res 配置文件 hang mirror x86_64 zabbix配置 release code rac
原文地址:http://blog.51cto.com/13769014/2148068