当前位置:网站首页>zabbix automated monitoring script
zabbix automated monitoring script
2022-08-02 12:19:00 【Mu Chenchenxi】
#!/bin/bash
#docker install
touch /etc/yum.repos.d/aliyun.docker.repo
cat > /etc/yum.repos.d/aliyun.docker.repo
[docker]
name=docker
baseurl=docker-ce-linux-centos-7-x86_64-stable installation package download_open source mirror site-aliyun
enabled=1
gpgcheck=0
gpgkey=https://mirrors.aliyun.com/docker-ce/linux/centos/gpg
EOF
yum -y install docker-ce
docker -v
mkdir -p /etc/docker
tee /etc/docker/daemon.json
{
"registry-mirrors": ["https://2teyhdx3.mirror.aliyuncs.com"]
}
EOF
systemctl daemon-reload
systemctl restart docker
systemctl enable docker
docker info
#Security configuration
systemctl stop firewalld.service
systemctl disable firewalld.service
setenforce 0
sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config
#docker private warehouse build
docker pull registry:2
echo "net.ipv4.ip_forward=1" >> /etc/sysctl.conf
sysctl -p
mkdir -p /opt/data/registry
yum -y install net-tools
docker run -itd -p 5000:5000 --restart always -v /opt/data/registry/:/var/lib/registry --name registry registry:2
curl 172.17.10.32:5000/v2/_catalog
sed -i '13c ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock --insecure-registry 172.20.10.32:5000' /usr/lib/systemd/system/docker.service
#download mirror
docker pull nginx
docker pull busybox
docker pull httpd
docker pull centos:7
#Mirror rename
docker tag centos:7 172.20.10.32:5000/centos
docker rmi centos:7
docker tag nginx:latest 172.20.10.31:5000/nginx
docker tag httpd:latest 172.20.10.31:5000/httpd
docker tag busybox:latest 172.20.10.31:5000/busybox
边栏推荐
猜你喜欢
基于深度学习的裂缝检测技术
Data Lake (3): Hudi Concept Terminology
NVIDIA NeMo Metrics 轻量性能采集系统
pig4cloud服务架构使用
#夏日挑战赛#【FFH】OpenHarmony设备开发基础(三)编译依赖
[kali-information collection] (1.9) Metasploit + search engine tool Shodan
simulink PID auto-tuning
数据湖(一):数据湖概念
云原生(三十) | Kubernetes篇之应用商店-Helm介绍
【Acunetix-Forgot your password】
随机推荐
simulink PID自动整定
MySQL主从复制几个重要的启动选项
服务器间传输文件
When not to use () instead of Void in Swift
JVM学习----垃圾回收调优
MyCat2 introduction and installation and basic use
免费文档翻译-免费批量文档翻译软件推荐
How to better assess credit risk?Just watch this scorecard model live
喜迎八一 《社会企业开展应聘文职人员培训规范》团体标准出版发行会暨橄榄枝大课堂上线发布会在北京举行
DTG-SSOD: The latest semi-supervised detection framework, Dense Teacher (with paper download)
数据湖(三):Hudi概念术语
DTG-SSOD:最新半监督检测框架,Dense Teacher(附论文下载)
pig4cloud服务架构使用
元宇宙“吹鼓手”Unity:疯狂扩局,悬念犹存
基于深度学习的裂缝检测技术
SQL Server如何建表
ssm访问数据库数据报错
Swiper系列之轮播图
Failure Analysis | A SELECT statement crashes MySQL, what happened?
Create a devops CI/CD process using the kubesphere GUI