购买阿里云ecs后所做项目三:编译安装zabbix 5.0

(这个属于工作中的联系,搭建着看看)
可以参考zabbix 官网文档(最好按照官网配置来
https://www.zabbix.com/documentation/current/manual/installation/install
在这里插入图片描述

一,编译安装zabbix

#解压目录
[root@iZ2ze1o data]# tar xvf zabbix-5.0.0.tar.gz
[root@iZ2ze1o data]# cd zabbix-5.0.0
# 安装依赖
[root@iZ2ze1o zabbix-5.0.0]# yum install mysql-devel net-snmp net-snmp-devel libevent-devel curl-devel -y
[root@iZ2ze1o zabbix-5.0.0]# ./configure  --prefix=/apps/zabbix5.0 --enable-server --enable-agent --with-mysql --enable-ipv6 --with-net-snmp --with-libcurl --with-libxml2
[root@iZ2ze1o zabbix-5.0.0]# make && make install   

二,配置数据库

  1. 创建阿里云RDS数据库(注意不能这样创建数据库会报错 zabbix默认字符集不支持)在下面有
    在这里插入图片描述
  2. 创建账号在这里插入图片描述
  3. 设置连接白名单
    在这里插入图片描述
  4. 登录测试
    [root@iZ2ze1o0n0b42zks2le9byZ mysql]#mysql -uzabbix -p密码 -h链接地址
    Welcome to the MariaDB monitor.  Commands end with ; or \g.
    Your MySQL connection id is 191
    Server version: 8.0.16 Source distribution
    
    Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
    
    Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
    
    MySQL [(none)]>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值