配置文件是备份了github一脚脚本的,重装后自己手搓了一下,发现这个配置在一键脚本的VPS上可以,但是按照下面的办法在新VPS上手搓后systemctl status xray显示fail. 邪门的是可以用…求大佬哈 安装XTLS bash -c “$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)” @ install 生成uuid cd /usr/local/bin/ && ./xray uuid 生成公钥私钥(privateKey) cd /usr/local/bin/ && ./xray x25519 生成shortIds openssl rand -hex 8 编辑配置文件 vi /usr/local/etc/xray/config.json 重启服务 systemctl restart xray 查看状态,这里发现一直fail,但是能用….. systemctl status xray 配置文件如下 { “log” : { “access”: “/root/v2ray-access.log”, “error”: “/root/v2ray-error.log”, “loglevel”: “warning” }, “inbounds”: [ { “port”: 443, “protocol”: “vless”, “settings”: { “clients”: [ { “id”: “b8c41844-7260-4ec8-99c4-2cb228f325cf”, “flow”: “xtls-rprx-vision”, “level”: 0, “email”: “[email protected]” } ], “decryption”: “none”, “fallbacks”: [ { “dest”: 80 } ] }, “streamSettings”: { “network”: “tcp”, “security”: “reality”, “realitySettings”: { “show”: false, “dest”: “www.apple.com:443”, “xver”: 0, “serverNames”: [ “www.apple.com”, “icloud.com”, “www.icloud.com”, “apple.com”, “www.apple.com”, “mozilla.org”, “addons.mozilla.org”, “ebay.com”, “www.ebay.com”, “walmart.com”, “www.walmart.com”, “etsy.com”, “www.etsy.com”, “shopify.com”, “www.shopify.com”, “amazon.com” ], “privateKey”: “lAHxzt4a1foK_pN9WQrLTpXUL2T9OkcyHuNyF1fD3mQ”, “maxTimeDiff”: 0, “shortIds”: [ “”, “877af81f1d102830” ] } }, “sniffing”: { “enabled”: true, “destOverride”: [ “http”, “tls” ] } } ], “routing”: { “domainStrategy”: “IPIfNonMatch”, “rules”: [ { “type”: “field”, “outboundTag”: “IPv6_out”, “domain”: [“test.com” ] }, { “type”: “field”, “outboundTag”: “WARP_out”, “domain”: [“test.com” ] }, { “type”: “field”, “outboundTag”: “V2Ray_out”, “domain”: [“test.com” ] }, { “type”: “field”, “domain”: [ “geosite:cn” ], “outboundTag”: “blocked_out” }, { “type”: “field”, “ip”: [ “geoip:cn” ], “outboundTag”: “blocked_out” }, { “type”: “field”, “outboundTag”: “IPv4_out”, “network”: “udp,tcp” } ] }, “outbounds”: [ { “tag”:”IPv4_out”, “protocol”: “freedom”, “settings”: { “domainStrategy”: “UseIPv4” } }, { “tag”: “blocked_out”, “protocol”: “blackhole”, “settings”: { “response”: { “type”: “http” } } }, { “tag”:”IPv6_out”, “protocol”: “freedom”, “settings”: { “domainStrategy”: “UseIPv6” } }, { “tag”: “WARP_out”, “protocol”: “socks”, “settings”: { “servers”: [ { “address”: “127.0.0.1”, “port”: 40000 } ] }, “streamSettings”: { “network”: “tcp” } } ] }复制代码