|
|
11 月之前 | |
|---|---|---|
| .. | ||
| init.d | 1 年之前 | |
| README.md | 11 月之前 | |
| README_zh-Hans.md | 11 月之前 | |
| README_zh-Hant.md | 11 月之前 | |
| install-release.sh | 11 月之前 | |
apk add curl
curl -O -L https://github.com/XTLS/Xray-install/raw/main/alpinelinux/install-release.sh
ash install-release.sh
rc-update add xray
rc-update del xray
rc-service xray start
rc-service xray stop
rc-service xray restart
/usr/local/lib/xray/ has been updated to new path /usr/local/share/xray/geosite.dat and geoip.dat/etc/init.d/xray or write custom daemon scriptsroot Required: Xray now retains privileges (capabilities) to support tproxy and sockopt even when running as nobodyroot anymore — it already has all required network privilegesRegular users can ignore this change
sed -i 's/^capabilities="^cap_net_bind_service,^cap_net_admin,^cap_net_raw"$/capabilities="^cap_net_bind_service"/g' /etc/init.d/xray