当前位置:网站首页>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
边栏推荐
- redis cluster cluster, the ultimate solution?
- 【MySQL系列】- LIKE查询 以%开头一定会让索引失效吗
- Data Lake (3): Hudi Concept Terminology
- Drools(8): WorkBench uses
- SQL function TRIM
- MD5详解(校验文件完整性)
- 智能图像分析-智能家用电器图像目标检测统计计数检测与识别-艾科瑞特科技(iCREDIT)
- #Summer Challenge#[FFH] OpenHarmony Device Development Foundation (3) Compilation Dependencies
- 三种实现分布式锁的方式
- SQL Server2019安装步骤及脱机安装Microsoft机器学习组件下一步不能继续的问题
猜你喜欢
分布式限流利器,手撕&redisson实现
喜迎八一 《社会企业开展应聘文职人员培训规范》团体标准出版发行会暨橄榄枝大课堂上线发布会在北京举行
Likou 209 - String with the Minimum Length - Sliding Window Method
[kali-information collection] (1.8) ARP reconnaissance tool _Netdiscover
How to better assess credit risk?Just watch this scorecard model live
Taurus.MVC V3.0.3 微服务开源框架发布:让.NET 架构在大并发的演进过程更简单。
内存存储结构
翻译英语的软件-免费翻译软件-各种语言互相翻译
linux basic command explanation
numpy&pands 中的unique
随机推荐
面积曲线AUC(area under curve)
How to set up wireless PPI communication between Weiluntong touch screen and S7-200smart?
np.nan, np.isnan, None, pd.isnull, pd.isna finishing and summary
openresty 性能优化
服务器间传输文件
1.3快速生成树协议RSTP
力扣35-搜索插入位置——二分查找
中原银行实时风控体系建设实践
免费的中英文翻译软件-自动批量中英文翻译软件推荐大全
【The 6th Strong Net Cup CTF-Wp】
AQS-AbstractQueuedSynchronizer
力扣977-有序数组的平方——暴力法&双指针法
simulink PID自动整定
Idea 全局搜索(idea如何全局搜索关键字)
SQL Server修改数据
excel 批量翻译-excel 批量函数公司翻译大全免费
Seneor Exposure Basics
免费文档翻译-免费批量文档翻译软件推荐
JVM学习----垃圾回收调优
数据湖(一):数据湖概念