主机论坛

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 16|回复: 0

这脚本怎么样

[复制链接]

4

主题

17

帖子

62

积分

注册会员

Rank: 2

积分
62
发表于 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
回复

使用道具 举报

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

本版积分规则

QQ|Archiver|手机版|小黑屋|主机论坛

GMT+8, 2024-4-28 22:52 , Processed in 0.062225 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

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