103 words
1 minute
xray服务端安装
Xray安装脚本
安装脚本-Release版本
bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ install --beta--beta: xray的Pre-release版本
官方文档- 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 #开启自启