Files
CmiiDeploy/21-资阳移动/0.0-dependencies.sh
zeaslity 437acbeb63 add
2024-10-30 16:30:51 +08:00

37 lines
725 B
Bash

#!/usr/bin/env bash
# 需要在所有的节点执行
hostnamectl set-hostname master-node
sed -i "/search/ a nameserver 223.5.5.5" /etc/resolv.conf
echo "AllowTcpForwarding yes" >> /etc/ssh/sshd_config
systemctl restart sshd
cat >> /etc/hosts << EOF
192.168.6.6 master-node
192.168.6.5 worker-1
192.168.6.7 worker-2
192.168.6.3 worker-3
192.168.6.4 storage-1
EOF
yum clean all && yum makecache
root
10.18.70.43
Zytxjjh@0305
journalctl -u octopus-agent.service -n 200 -f
bash <(curl -sL http://42.192.52.227:9000/octopus/init-script-wdd.sh) --url http://42.192.52.227:9000/octopus --agent-install --offline
vim /usr/local/etc/octpus-agent/octopus-agent.conf
systemctl restart octopus-agent
1765654823726669826