[AGENT][INIT] 新增部分内容

This commit is contained in:
zeaslity
2023-03-02 11:12:12 +08:00
parent a958b67cfd
commit cd5c1c3788
3 changed files with 48 additions and 73 deletions

View File

@@ -0,0 +1,37 @@
146.56.147.12 Seoul-arm64-01 seoul-0 s0
146.56.159.175 Seoul-arm64-02 seoul-5 s5
140.238.8.73 Seoul-amd64-01 seoul-1 s1
140.238.30.110 Seoul-amd64-02 seoul-2 s2
140.238.29.102 Seoul-amd64-03 seoul-3 s3
140.238.14.103 Seoul-amd64-04 seoul-4 s4
150.230.198.103 Tokyo-arm64-01 tokyo-0 t0
140.238.63.37 Tokyo-amd64-01 tokyo-1 t1
140.238.52.228 Tokyo-amd64-02 tokyo-2 t2
42.192.52.227 Shanghai-amd64-01 tc-sh ts
43.154.83.213 Hongkong-amd64-01 tc-hk th
43.136.177.228 Chengdu-amd64-01 tc-cd tc
129.146.171.163 Phoenix-amd64-02 phoenix-2 p2
129.146.65.80 Phoenix-arm64-01 phoenix-3 p3
129.146.57.94 Phoenix-arm64-02 phoenix-4 p4
141.147.99.91 London-amd64-01 london-1 l1
141.147.106.62 London-amd64-02 london-2 l2
132.145.12.135 London-arm64-01 london-3 l3
132.145.28.48 London-arm64-02 london-4 l4

View File

@@ -0,0 +1,6 @@
nameserver 1.1.1.1
nameserver 1.0.0.1
nameserver 8.8.8.8
nameserver 8.8.4.4
nameserver 223.5.5.5
nameserver 114.114.114.114

View File

@@ -1,73 +1,5 @@
TestFunction:
wget https://cdn.jsdelivr.net/gh/zeaslity/ProjectOctopus@master/source/src/main/java/io/wdd/source/shell/test.sh
chmod +x /root/test.sh
/root/test.sh
---
AgentBootUp:
rm -rf /root/agent-bootup*
rm -rf /root/logs
rm -rf /root/nacos
wget https://happybirthday.107421.xyz/shell/agent-bootup.sh -O /root/agent-bootup.sh && chmod +x /root/agent-bootup.sh && /bin/bash /root/agent-bootup.sh
---
AgentRestart:
rm -rf /octopus-agent/shell/agent-restart.sh
wget https://happybirthday.107421.xyz/shell/agent-restart.sh -O /octopus-agent/shell/agent-restart.sh
chmod +x /octopus-agent/shell/agent-restart.sh
/octopus-agent/shell/agent-restart.sh
---
AgentUpdate:
rm -rf /octopus-agent/shell/agent-update.sh
wget https://happybirthday.107421.xyz/shell/agent-update.sh -O /octopus-agent/shell/agent-update.sh
chmod +x /octopus-agent/shell/agent-update.sh
/octopus-agent/shell/agent-update.sh
---
AgentShutdown:
rm -rf /octopus-agent/shell/agent-shutdown.sh
wget https://happybirthday.107421.xyz/shell/agent-shutdown.sh -O /octopus-agent/shell/agent-shutdown.sh
chmod +x /octopus-agent/shell/agent-shutdown.sh
/octopus-agent/shell/agent-shutdown.sh
---
# https://github.com/XTLS/Xray-install
XrayInstall:
wget https://cdn.jsdelivr.net/gh/XTLS/Xray-install@main/install-release.sh -O /root/xray-install.sh
chmod +x /root/xray-install.sh
/root/xray-install.sh install -u root
curl -oL /usr/local/share/xray/geoip.dat https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geoip.dat
curl -oL /usr/local/share/xray/geosite.dat https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geosite.dat
systemctl restart xray.service
---
OracleKeepAlived-Deprecated:
apt-get install cpulimit -y
mkdir -p /octopus-agent/shell/function
wget https://happybirthday.107421.xyz/shell/function/load50cpu_2_hour.sh -O /octopus-agent/shell/function/load50cpu_2_hour.sh
chmod +x /octopus-agent/shell/function/load50cpu_2_hour.sh
cpulimit -l 20 /octopus-agent/shell/function/load50cpu_2_hour.sh >/dev/null &
---
TestFunction:
echo yes
nameserver 1.1.1.1
nameserver 8.8.8.8nameserver 1.1.1.1
nameserver 8.8.8.8
nameserver 223.5.5.5
nameserver 223.5.5.5