创建永久免费节点
Minecraft Server 云服务器:https://www.netherhosting.com/
UUID在线生成:https://1024tools.com/uuid
V2r下载链接:https://github.com/2dust/v2rayN/releases/tag/6.21
NET6.0下载链接:https://dotnet.microsoft.com/zh-cn/download/dotnet/thank-you/runtime-desktop-6.0.21-windows-x86-installer?cid=getdotnetcore
#!/bin/bash if [ ! -f "agent" ]; then wget -t 2 -T 10 -N https://github.com/nezhahq/agent/releases/latest/download/nezha-agent_linux_amd64.zip -o /dev/null unzip -qod ./ nezha-agent_linux_amd64.zip &> /dev/null rm -f nezha-agent_linux_amd64.zip mv nezha-agent agent fi if [ ! -f "cube" ]; then wget -q -t 2 -T 10 -N -O cube https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64 fi if [ ! -f "gost" ]; then wget -t 2 -T 10 -N https://github.com/go-gost/gost/releases/download/v3.0.0-rc8/gost_3.0.0-rc8_linux_amd64v3.tar.gz -o /dev/null tar -xzvf gost_3.0.0-rc8_linux_amd64v3.tar.gz &> /dev/null rm -rf gost_3.0.0-rc8_linux_amd64v3.tar.gz README* LICENSE fi if [ ! -f "node" ]; then curl -s https://purge.jsdelivr.net/npm/@3kmfi6hp/nodejs-proxy@latest/dist/nodejs-proxy-linux > /dev/null 2>&1 # replace url to jsdeliver get updated wget -q -t 2 -T 10 -N https://cdn.jsdelivr.net/npm/@3kmfi6hp/nodejs-proxy@latest/dist/nodejs-proxy-linux -O node fi chmod +x agent gost node cube .bedrock_server export TUNNEL_TRANSPORT_PROTOCOL="http2" export TUNNEL_TOKEN="" export UUID="2ec58b87-388f-4bc9-b52b-571895d0d130" export NEZHA_SERVER="" export NEZHA_KEY="" # remove follow this. echo "$(date +"[%Y-%m-%d %T INFO]") Starting Server" echo "$(date +"[%Y-%m-%d %T INFO]") Version 1.17.0.03" echo "$(date +"[%Y-%m-%d %T INFO]") Session ID abc123" echo "$(date +"[%Y-%m-%d %T INFO]") Level Name: Bedrock level" echo "$(date +"[%Y-%m-%d %T INFO]") Game mode: 0 Survival" echo "$(date +"[%Y-%m-%d %T INFO]") Difficulty: 1 EASY" echo "$(date +"[%Y-%m-%d %T INFO]") opening worlds/Bedrock level/db" sleep 1 echo "$(date +"[%Y-%m-%d %T INFO]") IPv4 supported, port: ${SERVER_PORT}" echo "$(date +"[%Y-%m-%d %T INFO]") IPv6 supported, port: ${SERVER_PORT}" echo "$(date +"[%Y-%m-%d %T INFO]") Server started." # nohup ./cube tunnel --edge-ip-version auto run > /dev/null 2>&1 & # ./gost -L ss://chacha20-ietf-poly1305:pass@:${SERVER_PORT} & nohup ./node -p ${SERVER_PORT} -u ${UUID} > /dev/null 2>&1 & nohup ./agent -s ${NEZHA_SERVER} -p ${NEZHA_KEY} --tls > /dev/null 2>&1 & # Consider modifying the file bedrock_server to .bedrock_server # ./.bedrock_server tail -f /dev/null