110 words
1 minute
xray服务端安装
Xray安装脚本
安装脚本-Release版本
bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ install -u root-u 参数指定运行用户root
官方文档- https://xtls.github.io/
配置文件结构
{ "log": { "loglevel": "none" // 日志 }, "inbounds": [{}], //入站协议 "outbounds": [ { "protocol": "freedom", "tag": "direct", //出站协议 } ]}运行
安装路径: /usr/local/bin/xray
配置文件路径:/usr/local/etc/xray/config.json
systemctl status xray #查看状态systemctl restart xray #重新启动systemctl stop xray #停止systemctl enable xray #开启自启 xray服务端安装
https://fuwari.vercel.app/posts/xray/