bannedbook / fanqiang

翻墙-科学上网
37.59k stars 7.2k forks source link

v2ray官方一键安装脚本出错 #838

Open J-You opened 8 months ago

J-You commented 8 months ago

自建shadowsocks,执行命令: apt-get install -y curl bash <(curl -L https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-release.sh) 提示两个都已成功安装:

root@vultr:/# apt-get install -y curl
Reading package lists... Done
Building dependency tree       
Reading state information... Done
curl is already the newest version (7.64.0-4+deb10u7).
0 upgraded, 0 newly installed, 0 to remove and 32 not upgraded.
root@vultr:/# bash <(curl -L https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-release.sh)
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 22454  100 22454    0     0  1370k      0 --:--:-- --:--:-- --:--:-- 1370k
info: No new version. The current version of V2Ray is v5.7.0 .

但是在etc目录下没有v2ray文件夹,/usr/local/bin/下也没有可执行程序。请问改怎么解决?

J-You commented 8 months ago

/usr/local/etc/v2ray 麻烦更新

J-You commented 8 months ago

/usr/local/bin/v2ray

bannedbook commented 8 months ago

https://github.com/bannedbook/fanqiang/blob/master/v2ss/V2ray%E5%AE%98%E6%96%B9%E4%B8%80%E9%94%AE%E5%AE%89%E8%A3%85%E8%84%9A%E6%9C%AC.md

是这个教程吗

J-You commented 8 months ago

是的 新版本v2ray的bin程序和配置文件位置都更新了,麻烦更新下哈

bannedbook commented 8 months ago

我试了一下,没错啊 /usr/local/bin/v2ray /usr/local/etc/v2ray/config.json

J-You commented 8 months ago

抱歉 我一开始没有注意到‘/usr/local’

麻烦再看一下这个报错,提示没有test flag

root@vultr:/usr/local/etc/v2ray# ls
config.json
root@vultr:/usr/local/etc/v2ray# v2ray -test -config config.json
flag provided but not defined: -test
Usage of v2ray:
bannedbook commented 8 months ago

你看的是哪个教程 不是当前的版本的教程啊

J-You commented 8 months ago

hello 请问config.json具体如何配置呢,我需要修改哪些参数呢