Files
CmiiDeploy/998-常用脚本/重启服务器恢复/1.1-minio-重启脚本.sh
zeaslity 437acbeb63 add
2024-10-30 16:30:51 +08:00

13 lines
317 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
echo "运行前确保所有虚拟机都已经启动IP网卡正常可互通"
#重启镜像服务
echo "恢复MINIO服务"
docker-compose -f /root/wdd/minio-docker-compose.yaml up -d
if docker ps | grep -q wdd-minio1-1; then
echo "minio restart success !"
else
echo "minio restart failed !"
fi