Centos7.0 搭建Zabbix环境

前端之家收集整理的这篇文章主要介绍了Centos7.0 搭建Zabbix环境前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

实验环境:Centos7.0

IP:192.168.47.140

f0680e1edfb5938b7afa20572276f6b9.png-wh_

关闭iptables及setenforce

09ee21f832fe590b3cdce09060efb53a.png-wh_

导入源 rpm -ivh http://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/zabbix-release-3.0-1.el7.noarch.rpm

@L_502_5@

安装zabbix包

e1c9fba37e2bd66d8efe82c41055087e.png-wh_

安装完成

544b5aa52fdbefaf1ac2fb8339323e90.png-wh_

安装MysqL

wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm

rpm -ivh MysqL-community-release-el7-5.noarch.rpm


82c45f3bc4fd7499debe13099d381e54.png-wh_

yum install -y MysqL-community-server

b6a06bb293e7c7fc78cd79a59f5675b5.png-wh_

安装完成

b2106f4d54aec0e4c1a3bbe71994efd8.png-wh_

启动MysqL服务

593cdf720ef381055c5242c6c4422b04.png-wh_

设置MysqL

MysqL_secure_installation

624413bccc65aad5d688aa234f07a864.png-wh_

登陆MysqL

MysqL-uroot-p

fdf9d8342e1d138b6fcac9147331df84.png-wh_

创建相关数据库

createdatabasezabbixcharactersetutf8collateutf8_bin;
grantallprivilegesonzabbix.*tozabbix@localhostidentifiedby'zabbix';

fda42611dd0b18be9d778386e26fa3b3.png-wh_

切换目录 复制文件

cd/usr/share/doc/zabbix-server-MysqL-3.0.13
zcatcreate.sql.gz|MysqL-uroot-pzabbix

d678cf46f3ef6627ab09b8c45f64f1c9.png-wh_

修改配置文件

DBHost=localhost
DBName=zabbix
DBUser=zabbix
DBPassword=zabbix
vim/etc/zabbix/zabbix_server.conf

fa163a8d0325d56a1ff1a38a241bae84.png-wh_

b97a1fccecf4c236844e0351405c90bf.png-wh_

启动zabbix-server

9fdf9bebcfd13c30f1bc97d2d9f30d62.png-wh_

修改zabbix配置

vim/etc/httpd/conf.d/zabbix.con
@R_301_461@_valuedate.timezoneAsia/Shanghai

9ebff6fefa19b6938e63bb54f3092816.png-wh_

启动http服务

systemctl start httpd

a14ff27b7b889b9d937cc24b6f22abf5.png-wh_

访问测试

3e53b36304dd4e6ea7b6cd043b7c33ce.png-wh_

13fc7bf21624e9083d09c175717168e4.png-wh_

6e0d4c5ad71a39410f48d92539df4099.png-wh_

a62e957eecf0731dff0a0741de6d54f8.png-wh_

原文链接:https://www.f2er.com/centos/375251.html

猜你在找的CentOS相关文章