找回密码
 立即注册
CeraNetworksBGVM服务器主机交流IP归属甄别会员请立即修改密码
查看: 6|回复: 0

这脚本怎么样

[复制链接]

5

主题

8

回帖

83

积分

注册会员

积分
83
发表于 2024-3-26 00:12:12 | 显示全部楼层 |阅读模式
cd
mkdir vv
cd vv
if [[ "$(uname -m)" == 'aarch64' ]]; then curl -Lo tmp.zip https://github.com/v2fly/v2ray-core/releases/download/v4.44.0/v2ray-linux-arm64-v8a.zip ; else curl -Lo tmp.zip https://github.com/v2fly/v2ray-core/releases/download/v4.44.0/v2ray-linux-64.zip ; fi
unzip tmp.zip
rm -f tmp.zip
echo '
cd "$HOME/vv"
pkill v2ray
rm -f stdout.log
nohup ./v2ray > stdout.log 2>&1 &
' > start.sh
chmod +x start.sh
printf '
{
  "inbounds": [
    {
      "port": 80,
      "protocol": "vmess",
      "settings": {
        "clients": [
          {
            "id": "%s"          }
        ]
      },
      "streamSettings": {
        "network": "ws"
      }
    }
  ],
  "outbounds": [
    {
      "protocol": "freedom"
    }
  ]
}
' `./v2ctl uuid`> config.json
cd
cat vv/config.json
vv/start.sh
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|HS2V主机综合交流论坛

GMT+8, 2024-5-24 12:28 , Processed in 0.044890 second(s), 3 queries , Gzip On, Redis On.

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表