本教程使用 v2rayA-core-quote.tar.gz 离线包进行部署,包含以下内容:
/usr/local/bin 与 /usr/local/share/v2ray/opt/v2raya_test/v2ray-tmp/sudo bash install-v2raya-core.sh
v2rayA-core-quote.tar.gz,若不存在则从 GitHub 下载:https://github.com/xiongli870110-hue/v2raya_ziyong/releases/download/v2rayA-core-quote-v2.2.7.3/v2rayA-core-quote.tar.gz
/opt/v2raya/ln -sf /opt/v2raya/usr/local/bin/v2ray /usr/local/bin/v2ray
ln -sf /opt/v2raya/usr/local/bin/v2raya /usr/local/bin/v2raya
ln -sfn /opt/v2raya/usr/local/share/v2ray /usr/local/share/v2ray
/etc/systemd/system/v2rayA.service
内容如下:
[Unit]
Description=v2rayA Service
After=network.target
[Service]
Type=simple
ExecStart=/usr/local/bin/v2raya
Restart=on-failure
User=root
Environment=V2RAY_LOCATION_CONFIG=/etc/v2raya/config.json
[Install]
WantedBy=multi-user.target
sudo systemctl daemon-reexec
sudo systemctl daemon-reload
sudo systemctl enable v2rayA
sudo systemctl restart v2rayA
systemctl status v2rayA
http://localhost:2017
http://192.168.x.x:2017
执行卸载脚本:
sudo bash uninstall-v2raya-core.sh
将清除:
/etc/v2raya/opt/v2raya/opt/v2raya/
├── usr/
│ └── local/
│ ├── bin/
│ │ ├── v2ray
│ │ └── v2raya
│ └── share/
│ └── v2ray/
│ ├── geoip.dat
│ └── geosite.dat