大量更新
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
|
||||
144.7.97.167
|
||||
|
||||
mv agent-wdd_linux_amd64 /usr/local/bin/agent-wdd
|
||||
chmod +x /usr/local/bin/agent-wdd
|
||||
@@ -7,6 +8,8 @@ chmod +x /usr/local/bin/agent-wdd
|
||||
/usr/local/bin/agent-wdd base ssh config
|
||||
/usr/local/bin/agent-wdd base ssh key
|
||||
|
||||
10.22.57.8
|
||||
|
||||
# 批量执行命令
|
||||
host_list=(
|
||||
10.22.57.5
|
||||
@@ -19,8 +22,12 @@ host_list=(
|
||||
for server in "${host_list[@]}";do
|
||||
echo "current ip is $server"
|
||||
|
||||
ssh root@${server} "systemctl restart docker"
|
||||
ssh root@${server} "docker info"
|
||||
ssh root@${server} "
|
||||
sed -i 's/^#NTP=.*/NTP=10.22.57.8/' /etc/systemd/timesyncd.conf
|
||||
sed -i 's/^#FallbackNTP=.*/FallbackNTP=/' /etc/systemd/timesyncd.conf
|
||||
systemctl restart systemd-timesyncd
|
||||
timedatectl status
|
||||
"
|
||||
|
||||
echo ""
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user