(这个属于工作中的联系,搭建着看看)
可以参考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
二,配置数据库
- 创建阿里云RDS数据库(注意不能这样创建数据库会报错 zabbix默认字符集不支持)在下面有
- 创建账号
- 设置连接白名单
- 登录测试
[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)]>