110 words
1 minute
xray服务端安装
2026-02-26
No Tags

Xray安装脚本#

安装脚本-Release版本

Terminal window
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/
Author
Christine
Published at
2026-02-26
License
CC BY-NC-SA 4.0