很多修改

This commit is contained in:
zeaslity
2024-12-08 12:07:11 +08:00
parent e1149ecfd0
commit 433885c886
19 changed files with 11508 additions and 18 deletions

View File

@@ -61,8 +61,8 @@ ssh root@${server} "printf 'ssh\n' | octopus-agent --mode=bastion"
scp /root/wdd/disk.sh root@${server}:/root/wdd/disk.sh
ssh root@${server} "bash /root/wdd/disk.sh"
nmcli connection modify "ens192" ipv4.dns "192.168.34.40,119.29.29.29"
nmcli connection up "ens192"
nmcli connection modify "eth0" ipv4.dns "192.168.34.40,119.29.29.29"
nmcli connection up "eth0"
nmcli dev show | grep DNS
scp /etc/ssh/sshd_config root@"${server}":/etc/ssh/sshd_config
@@ -97,4 +97,11 @@ ssh root@"${server}" "systemctl start nfs nfs-client nfs-common && systemctl ena
mv ctop-0.7.7-linux-amd64 /usr/local/bin/ctop
chmod +x /usr/local/bin/ctop
chmod +x /usr/local/bin/ctop
printf 'firewall\n' | octopus-agent --mode=bastion
printf 'sysconfig\n' | octopus-agent --mode=bastion
printf 'swap\n' | octopus-agent --mode=bastion
printf 'selinux\n' | octopus-agent --mode=bastion
printf 'docker\n' | octopus-agent --mode=bastion
printf 'dockercompose\n' | octopus-agent --mode=bastion