背景
1.通过Zabbix手动安装实验,深入理解其架构、系统级配置及故障排查能力
2.借助Docker安装实践,快速掌握容器化部署、环境一致性与扩展性。
3.对比二者在安装效率、运维复杂度、定制化能力及生产适配性上的差异,验证手动部署对底层控制的灵活性,以及容器化在标准化、快速交付中的优势。
4.实验旨在培养根据需求选择部署方案的能力,同时强化监控系统的全生命周期管理技能,为后续复杂场景下的监控方案设计奠定基础。
原生linux命令部署
IP为10.1.1.23
zabbix-server+页面(前端)
1、nginx
1.1关闭Slinux和防火墙
#关闭防火墙
systemctl stop firewalld && systemctl disable firewalld
#永久禁用SELinux
vi /etc/sysconfig/selinux
SELinux=enforcing改为SELinux=disabled
reboot #重启
1.2 安装nginx
防止出错,将yum.repos.d目录下文件打包压缩
配置yum源
编辑vim /etc/yum.repos.d/nginx.repo,安装测试
[nginx-stable]
name=nginx stable repo
baseurl=http://nginx.org/packages/centos/$releasever/$basearch/
gpgcheck=1
enabled=0
gpgkey=https://nginx.org/keys/nginx_signing.key
module_hotfixes=true
yum install -y nginx --enablerepo=nginx-stable #安装
#测试
rpm -qa | grep nginx
2.安装php
2.1 php安装
#nginx 1.20.1 php7.2
curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo yum install epel-release.noarch -y #webtatic 要求 curl -o /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm #webtatic源 yum -y install php72w php72w-cli php72w-common php72w-devel