-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Migrate from the old script to this
Dct Mei edited this page Aug 17, 2020
·
5 revisions
- 請確保你正在使用主流且不過時的發行版。
# systemctl disable v2ray.service --now
# rm -r /usr/bin/v2ray/
# rm /etc/systemd/system/v2ray.service
# rm /lib/systemd/system/v2ray.service
# rm /etc/init.d/v2ray
# mv /etc/v2ray/ /usr/local/etc/
如果你不想遷移配置文檔,請在下載腳本後自行修改:
# vim install-release.sh
JSON_PATH='/etc/v2ray/'
$ id nobody
uid=65534(nobody) gid=65534(nogroup) groups=65534(nogroup)
# chown -R nobody:nogroup /var/log/v2ray/
$ id nobody
uid=65534(nobody) gid=65534(nobody) groups=65534(nobody)
# chown -R nobody:nobody /var/log/v2ray/
# apt update
# apt install curl
# dnf makecache
# dnf install curl
# zypper refresh
# zypper install curl
$ curl -O https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-release.sh
# bash install-release.sh
- 你可能會對多文檔配置結構感到困惑,如果你仍希望使用原有的
config.json
,請移除這些對你而言多餘的文檔。 - 如果你不打算通過 systemd 來管理 V2Ray,請自行處理
V2RAY_LOCATION_ASSET
。