安装方法
bash <(curl -L -s https://raw.githubusercontent.com/pandoraes/V2Ray-With-SSpanel/master/install-release.sh) --panelurl https://xun.nntui.com --panelkey ji.. --nodeid 5 # restart v2ray node services systemctl start v2ray # recheck v2ray status systemctl status v2ray # enable auto start systemctl enable v2ray
修改 /etc/v2ray/config.json 文件
"mysql": { "host": "5x.xxx.xxx.x1", "port": 3306, "user": "wwwxxxhk", "password": "nbdiD.xxxxT3Mj", "dbname": "wwwxxxhk" },
对接SSPANEL案例
没有CDN的域名或者ip;端口(外部链接的);AlterId;协议层;;额外参数(path=/v2ray|host=xxxx.win|inside_port=10550这个端口内部监听)) // ws 示例 xxxxx.com;10550;16;ws;;path=/v2ray|host=oxxxx.com // ws + tls (Caddy 提供) xxxxx.com;0;16;tls;ws;path=/v2ray|host=oxxxx.com|inside_port=10550 xxxxx.com;;16;tls;ws;path=/v2ray|host=oxxxx.com|inside_port=10550 // nat ws 示例 xxxxx.com;11120;16;ws;;path=/v2ray|host=oxxxx.com // nat ws + tls (Caddy 提供) xxxxx.com;0;16;tls;ws;path=/v2ray|host=oxxxx.com|inside_port=10550|outside_port=11120 xxxxx.com;;16;tls;ws;path=/v2ray|host=oxxxx.com|inside_port=10550|outside_port=11120
更多详情
https://github.com/929496959/v2ray-sspanel-v3-mod_Uim-plugin
现在的正式版本已经收费,以前保存下来的免费版。
后端脚本
mkdir v2ray-agent && \cd v2ray-agent && \ curl https://raw.githubusercontent.com/hulisang/v2ray-sspanel-v3-mod_Uim-plugin/master/install.sh -o install.sh && \ chmod +x install.sh && \ bash install.sh
根据提示选择/输入
1) install
1) Docker_Caddy
ssrpanel_url:$_ENV['baseUrl']
ssrpanel key:$_ENV['muKey']
use ssrpanel speedtest:默认
ssrpanel node_id:节点 ID
Setting V2ray backend API Listen port:默认
Setting if the node go downwith panel:默认
caddy v2ray domain:前端面板设置的域名
caddy v2ray path:默认
caddy v2ray tls email:你的邮箱
caddy v2ray local listen port:默认
caddy listen port:默认
更新设置可以直接使用
/root/v2ray-agent/install.sh # 选择 2 更新配置文件 # 选择 3 更新镜像文件 # 选择 4 查看 Docker log
Docker 常用命令
#查看所有正在运行的 Docker docker container ls #查看选定 Docker 的 logdocker logs -f dockername #删除指定 Dockerdocker rm -f dockername #查看容器使用的磁盘空间 docker system df #对 Docker 进行全面垃圾回收 docker system prune -a
常见问题
前端设置看文档看文档看文档
https://github.com/hulisang/v2ray-sspanel-v3-mod_Uim-plugin/wiki
https://github.com/kahkee/v2ray-sspanel-v3-mod_uim-plugin
Q:为什么之前节点都能正常使用,过一段时间之后突然全部无法使用?
A:查看是不是前端面板炸了。
Q:OpenVZ 的 VPS 为什么不能用?
A:内核版本太低不支持 Docker ,貌似 OpenVZ 7 可以。
其他问题可以查看 Docker log 进行排错。
后端配置
没有CDN的域名或者ip;端口(外部链接的);AlterId;协议层;;额外参数(path=/v2ray|host=xxxx.win|inside_port=10550这个端口内部监听)) // ws 示例 xxxxx.com;10550;4;ws;;path=/v2ray|host=oxxxx.com // ws + tls (Caddy 提供) xxxxx.com;0;4;tls;ws;path=/v2ray|host=oxxxx.com|inside_port=10550 xxxxx.com;;4;tls;ws;path=/v2ray|host=oxxxx.com|inside_port=10550 // nat