multi-v2ray icon indicating copy to clipboard operation
multi-v2ray copied to clipboard

debian 8/9执行脚本后成功配置v2ray,但是执行命令v2ray出错

Open DaZF opened this issue 7 years ago • 3 comments

安装以后 root@debian:~# v2ray bash: /usr/local/sbin/v2ray: No such file or directory

DaZF avatar Dec 13 '18 06:12 DaZF

root@debian:~# whereis v2ray v2ray: /usr/bin/v2ray /etc/v2ray /usr/local/bin/v2ray root@debian:~# v2ray bash: /usr/local/sbin/v2ray: No such file or directory root@debian:~# echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 找了一下,在/usr/local/sbin下并没有v2ray,但是PATH常量中有/usr/local/bin,却没调用那里的v2ray

DaZF avatar Dec 13 '18 06:12 DaZF

去查看了/etc/profile文件,觉得可能是权限的问题,遂执行su root,执行前已经是root了,但是执行以后,执行v2ray,却运行成功,很奇怪。 执行su root前后PATH内容不变,实在无法理解这个情况。 不过问题算是暂时解决了

DaZF avatar Dec 13 '18 06:12 DaZF

是不是因为用了rsakey免密登录不是真正的root权限的问题啊,我也是这个情况,系统是debian 9输入su root也就好了,开心,但不是很明白为什么

hoohle avatar Dec 01 '19 10:12 hoohle