Centos7.6安装zabbix4.0 LTS版本
2020/11
30
11:11
关闭防火墙及selinux
systemctl stop firewalld.service
systemctl disable firewalld.service
sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config
grep SELINUX=disabled /etc/selinux/config
setenforce 0
下载安装zabbix最新rpm包
rpm -Uvh https://repo.zabbix.com/zabbix/4.0/rhel/7/x86_64/zabbix-release-4.0-1.el7.noarch.rpm
yum install zabbix-server-mysql zabbix-web-mysql zabbix-agent
安装DB
yum install mariadb-server
systemctl start mariadb.service
systemctl enable mariadb.service
创建DB
create database zabbix character set utf8 collate utf8_bin;
grant all privileges on zabbix.* to zabbix@localhost identified by 'zabbix';
导入数据库
tar -xf /usr/share/doc/zabbix-server-mysql*/create.sql.gz
进mysql, source create.sql
或者
zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -p zabbix
编辑配置文件:
vim /etc/zabbix/zabbix_server.conf
DBPassword=XXXXXXXXXX
vim /etc/httpd/conf.d/zabbix.conf
php_value date.timezone Asia/Shanghai
查找zabbix.conf.php并查看是否设置正确
/etc/zabbix/web/zabbix.conf.php
开启Zabbix server and agent 进程
systemctl restart zabbix-server zabbix-agent httpd
systemctl enable zabbix-server zabbix-agent httpd
安装zabbix web
http://xxxx/zabbix
CopyRights: The Post by BY-NC-SA For Authorization,Original If Not Noted,Reprint Please Indicate From 老刘@开发笔记
Post Link: Centos7.6安装zabbix4.0 LTS版本
Post Link: Centos7.6安装zabbix4.0 LTS版本