Centos7安装Zabbix3.4

1、先装mariadb:

yum install mariadb-server mariadb -y

systemctl start mariadb

systemctl enable mariadb

mysql_secure_installation 配置mysql的root等信息

mysql进后create database zabbix;grant all on zabbix.* to zabbix@localhost identified by 'zabbix';

2、开始安装

rpm -ivh http://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-release-3.4-1.el7.centos.noarch.rpm

yum install zabbix-server-mysql zabbix-web-mysql -y

zcat /usr/share/doc/zabbix-server-mysql-3.4.3/create.sql.gz > /home/create.sql

进入mysql后导入到zabbix中:use zabbix;source /home/create.sql

vi /etc/zabbix/zabbix_server.conf配置 DBHost、DBPassword、DBUser、DBHost、DBSocket

3、配备服务

systemctl start httpd

systemctl enable httpd

systemctl start zabbix-server

systemctl enable zabbix-server

firewall-cmd --permanent --zone=public --add-service=http

firewall-cmd --reload

4、浏览器打开192.168.1.160/zabbix然后开始配置,用户名是admin 密码zabbix 然后配置用户

5、安装本机的agent

yum install zabbix-agent -y

service zabbix-agent start

systemctl enable zabbix-agent

6、排错

注意selinux关闭还有看zabbix_server日志



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值