2022.10.08
- bash <(curl -L https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-release.sh)
复制代码
配置
- {
- "log": {
- "access": "/var/log/v2ray/access.log",
- "error": "/var/log/v2ray/error.log",
- "loglevel": "warning"
- },
- "inbounds": [
- {
- "port": 6688,
- "protocol": "vmess",
- "settings": {
- "clients": [
- {
- "id": "8c042a38-71c1-1dcb-00df-54880236e0dc"
- }
- ]
- }
- }
- ],
- "outbounds": [
- {
- "protocol": "freedom"
- }
- ]
- }
复制代码
安装记录
- installed: /usr/local/bin/v2ray
- installed: /usr/local/share/v2ray/geoip.dat
- installed: /usr/local/share/v2ray/geosite.dat
- installed: /usr/local/etc/v2ray/config.json
- installed: /etc/systemd/system/v2ray.service
- installed: /etc/systemd/system/v2ray@.service
复制代码
自启
删除文件- rm -rf /etc/v2ray/* #(配置文件)
- rm -rf /usr/bin/v2ray/* #(程序)
- rm -rf /var/log/v2ray/* #(日志)
- rm -rf /lib/systemd/system/v2ray.service #(systemd 启动项)
- rm -rf /etc/init.d/v2ray #(sysv 启动项)
复制代码
查看端口
- netstat -apn | grep v2ray
复制代码
参考资料
- https://qzone.work/technologys/514.html
- https://www.linodovultr.com/post/resolve-v2ray-after-install-can-not-connect.html
|