zabbix 5.0安装脚本(在线版)
1、zabbix_server.sh
#!/bin/bash
# Zabbix-Server 5.0
#关闭防火墙
systemctl stop firewalld.service
systemctl disable firewalld.service
#禁用SELINUX
setenforce 0
#安装zabbix源、修改为aliyun源
cd /etc/yum.repos.d/
rpm -Uvh https://repo.zabbix.com/zabbix/5.0/rhel/7/x86_64/zabbix-release-5.0-1.el7.noarch.rpm
sed -i.bak 's#repo.zabbix.com#mirrors.aliyun.com/zabbix#' zabbix.repo
sed -i 's#enabled=0#enabled=1#' zabbix.repo
yum clean all
#安装za版权声明:本文为u010948569原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。