centos7 源码安装 zabbix4.2.6 脚本 及文件
资源为tar 包 解压在root 目录下即可
systemctl stop firewalld
systemctl disable firewalld
setenforce 0
sed -i 's/^SELINUX=.*/SELINUX=disabled/' /etc/selinux/config
timedatectl set-timezone Asia/Shanghai
cd /etc/yum.repos.d/
rm -rf *
curl -O http://mirrors.aliyun.com/repo/Centos-7.repo
curl -O http://mirrors.aliyun.com/repo/epel-7.repo
yum clean all && yum repolist
yum -y install gcc pcre-devel openssl-devel php php-mysql php-fpm mariadb mariadb-devel mariadb-server
yum -y install net-snmp-devel curl-devel libvent-devel net-snmp-devel libxml2-devel unixODBC libssh2-deve OpenIPMI OpenIPMI-devel unixODBC-devel ncurses-devel glibc.i686 ntpdate
ntpdate ntp1.aliyun.com
.....................