# Xray-core/sing-box 一键脚本快速安装
使用指南 | Github 项目地址
脚本:
wget -P /root -N --no-check-certificate "https://raw.githubusercontent.com/mack-a/v2ray-agent/master/install.sh" && chmod 700 /root/install.sh && /root/install.sh |
运行脚本: vasma
安装目录: /etc/v2ray-agent/
一键脚本基于 sing-box
内核的 Vless+WS
节点套 CDN 时与 Hysteria2
用同一个域名不兼容,需要手动申请新的 tls 域名证书,更改 Hysteria2
的配置。
需要更改的有:
- 在
/etc/v2ray-agent/tls
添加另外的 tls 域名证书 - 更改
/etc/v2ray-agent/sing-box/conf/config.json
文件 Hysteria2 的域名及证书部分
可用以下代码将证书转换成 json array 的格式
def pem_to_json_array(filepath): | |
with open(filepath, 'r') as f: | |
lines = f.read().splitlines() | |
json_array = ',\n '.join(f'"{line}"' for line in lines) | |
print('[\n ' + json_array + '\n]') | |
# 用法:替换为你的证书路径 | |
pem_to_json_array('fullchain.pem') |
- 更改
/etc/v2ray-agent/sing-box/conf/config/06_hysteria2_inbounds.json
的域名及证书部分
更改后重启 sing-box
systemctl stop sing-box.service | |
systemctl start sing-box.service |
# 更新 Padavan 固件
项目地址
脚本
wget -q -O- https://opt.cn2qq.com/opt-script/up.sh > /tmp/up.sh && bash < /tmp/up.sh & | |
sudo systemctl status nginx |
# 安装 Aria2
Github 项目地址
脚本
wget -N git.io/aria2.sh && chmod +x aria2.sh |
运行脚本: ./aria2.sh
# Aidoku 图源
- 中文图源 | Github 项目地址
- 社区图源 | Github 项目地址