1. 安装 MysqL 数据库
# rpm -i https://repo.zabbix.com/zabbix/4.0/rhel/7/x86_64/zabbix-release-4.0-1.el7.noarch.rpm
2. 安装Zabbix server,Web前端,agent,mariadb-server
# yum -y install zabbix-server-MysqL zabbix-web-MysqL zabbix-agent mariadb-server
3. 启动MysqL
#systemctl start mariadb
4. 创建初始数据库,创建zabbix帐号权限
# MysqL -uroot -p
password
MysqL> create database zabbix character set utf8 collate utf8_bin;
MysqL> grant all privileges on zabbix.* to zabbix@localhost identified by 'password';
MysqL> quit;
导入初始架构和数据,系统将提示您输入新创建的密码。
# zcat /usr/share/doc/zabbix-server-MysqL*/create.sql.gz | MysqL -uzabbix -p zabbix
5.为Zabbix server配置数据库
编辑配置文件 /etc/zabbix/zabbix_server.conf
DBPassword=password
6. 为Zabbix前端配置PHP
Edit file /etc/httpd/conf.d/zabbix.conf, uncomment and set the right timezone for you.
# PHP_value date.timezone Asia/Shanghai
7.启动Zabbix server和agent进程
启动Zabbix server和agent进程,并为它们设置开机自启:
# systemctl restart zabbix-server zabbix-agent httpd mariadb
# systemctl enable zabbix-server zabbix-agent httpd mariadb
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。