From 9222aafb4372ab81d1ca8bcf57113fdb91535844 Mon Sep 17 00:00:00 2001 From: wangqifan Date: Thu, 11 Dec 2025 14:34:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20insall=5Fv2raya.sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- insall_v2raya.sh | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 insall_v2raya.sh diff --git a/insall_v2raya.sh b/insall_v2raya.sh new file mode 100644 index 0000000..a118243 --- /dev/null +++ b/insall_v2raya.sh @@ -0,0 +1,46 @@ +#!/bin/bash + +echo "=== 下载 v2rayA 二进制文件 ===" +wget -O v2raya https://git.functen.cn/wangqifan/resouce/raw/branch/main/v2raya_linux_x64_2.2.7.4 + +if [ $? -ne 0 ]; then + echo "下载失败,请检查链接或网络" + exit 1 +fi + +echo "=== 安装 v2rayA 到 /usr/local/bin ===" +sudo mv v2raya /usr/local/bin/v2raya +sudo chmod +x /usr/local/bin/v2raya + +echo "=== 创建配置目录 /etc/v2raya ===" +sudo mkdir -p /etc/v2raya + +echo "=== 创建 systemd 服务文件 ===" +sudo tee /etc/systemd/system/v2raya.service > /dev/null <:2017" +echo "如需查看日志: journalctl -u v2raya -f"