Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

大佬们,请使用root权限的账户登录怎么搞哦?部署V2ray老是不行 #1772

Open
K001-dev opened this issue Feb 20, 2025 · 23 comments

Comments

@K001-dev
Copy link

用过Administrator账户,关过防火墙,禁用过本地组策略编辑器的用户账户控制:用于内置管理员账户的管理员批准模式,都不行啊,我要崩溃了

@K001-dev
Copy link
Author

用了两个版本v2.5.6和v4.1.10都不行,一到安装就提示请使用root权限账户登录。

@Alvin9999
Copy link
Owner

ProxySU界面上的用户那一栏里面填写root

@K001-dev
Copy link
Author

ProxySU界面上的用户那一栏里面填写root

卧槽!大佬回复这么快。但是我填写了他就登录不了主机名了,需要服务器重装一个吗?
我的服务器的用户名是
linuxuser

@Alvin9999
Copy link
Owner

如果vultr购买的服务器,默认的用户名是root,再填写好root密码应该就能登录。

@K001-dev
Copy link
Author

如果vultr购买的服务器,默认的用户名是root,再填写好root密码应该就能登录。

那个已经解决啦,感谢大佬点拨,我是在部署服务器的时候出了问题,

把那个limited User Login勾上了,然后用户名就会变为linuxuser。

@K001-dev
Copy link
Author

但是现在版本v4.1.10的申请不了证书了(叹气),版本v2.5.6的域名不能解析到当前VPS的IP上,但是可以ping出来。

@Alvin9999
Copy link
Owner

用v2.5.7版本

ProxySU-v2.5.7:
国外云盘下载1 国外云盘下载2

@K001-dev
Copy link
Author

用v2.5.7版本

ProxySU-v2.5.7: 国外云盘下载1 国外云盘下载2

大佬,云盘解压出来的是v2.5.6呀,而且还报错了

@K001-dev
Copy link
Author

还是不行,还是域名未能正确解析到当前的VPS的IP上,明明都可以ping出来,搞不懂,头痛.

@K001-dev
Copy link
Author

正在登录远程主机......
主机登录成功!
uname -a
Linux vultr 6.1.0-30-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.124-1 (2025-01-12) x86_64 GNU/Linux

sed -i 's/echo/#echo/g' ~/.bashrc

sed -i 's/echo/#echo/g' ~/.profile

检测是否运行在root权限下...
id -u
0

检测结果:OK!
检测系统是否已经安装v2ray......
if [[ -f /usr/local/bin/v2ray ]];then echo '1';else echo '0'; fi
0

检测结果:未安装v2ray
检测系统是否符合安装要求......
command -v apt-get
/usr/bin/apt-get

command -v dnf
/root/.bashrc: line 21: /root/.acme.sh/acme.sh.env: No such file or directory

command -v yum
/root/.bashrc: line 21: /root/.acme.sh/acme.sh.env: No such file or directory

command -v systemctl
/usr/bin/systemctl

command -v getenforce
/root/.bashrc: line 21: /root/.acme.sh/acme.sh.env: No such file or directory

检测结果:OK!
apt-get update
Hit:1 https://apprepo.vultr.com/debian universal InRelease
Hit:2 https://debian.mirror.constant.com bookworm InRelease
Hit:3 https://deb.debian.org/debian bookworm InRelease
Hit:4 https://deb.debian.org/debian-security bookworm-security InRelease
Hit:5 https://deb.debian.org/debian bookworm-updates InRelease
Reading package lists...

apt-get -y install xz-utils
Reading package lists...
Building dependency tree...
Reading state information...
xz-utils is already the newest version (5.4.1-0.2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

正在检测是否为纯ipv6主机......
curl -4 ip.sb
140.82.8.246

curl -6 ip.sb

检测端口占用情况......
lsof -n -P -i :80 | grep LISTEN
/root/.bashrc: line 21: /root/.acme.sh/acme.sh.env: No such file or directory

lsof -n -P -i :443 | grep LISTEN
/root/.bashrc: line 21: /root/.acme.sh/acme.sh.env: No such file or directory

检测结果:未被占用!
开启防火墙相应端口......
ufw allow 80/tcp
Rule added
Rule added (v6)

ufw allow 80/udp
Rule added
Rule added (v6)

ufw allow 443/tcp
Rule added
Rule added (v6)

ufw allow 443/udp
Rule added
Rule added (v6)

yes | ufw reload
Firewall reloaded

校对时间......
时间差符合要求,OK!
正在检测域名是否解析到当前VPS的IP上......
dig @resolver1.opendns.com A 163399.xyz +short -4 | grep -oE '[0-9]+.[0-9]+.[0-9]+.[0-9]+' | head -n 1

域名未能正确解析到当前VPS的IP上!安装失败!
大佬,卡在百分之六十的进度,这咋搞?再部署一个服务器?

@Alvin9999
Copy link
Owner

你的域名是哪个?

@Alvin9999
Copy link
Owner

域名那一栏里你填写的什么?

@K001-dev
Copy link
Author

大佬,不好意思,在赶路没时间回复,域名就填我注册的域名,163399.xyz

@Alvin9999
Copy link
Owner

你这个域名163399.xyz 并没有指定服务器ip

@Alvin9999
Copy link
Owner

你可以添加一个二级域名,比如1.163399.xyz A记录指向服务器ip

@K001-dev
Copy link
Author

啊哈,这样吗?我有学大佬你搞个t1在前面,原来这个也要写进去

@Alvin9999
Copy link
Owner

是的,需要填写完整的域名。

@K001-dev
Copy link
Author

正在登录远程主机......
主机登录成功!
uname -a
Linux vultr 6.1.0-30-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.124-1 (2025-01-12) x86_64 GNU/Linux

sed -i 's/echo/#echo/g' ~/.bashrc

sed -i 's/echo/#echo/g' ~/.profile

检测是否运行在root权限下...
id -u
0

检测结果:OK!
检测系统是否已经安装v2ray......
if [[ -f /usr/local/bin/v2ray ]];then echo '1';else echo '0'; fi
0

检测结果:未安装v2ray
检测系统是否符合安装要求......
command -v apt-get
/usr/bin/apt-get

command -v dnf
/root/.bashrc: line 21: /root/.acme.sh/acme.sh.env: No such file or directory

command -v yum
/root/.bashrc: line 21: /root/.acme.sh/acme.sh.env: No such file or directory

command -v systemctl
/usr/bin/systemctl

command -v getenforce
/root/.bashrc: line 21: /root/.acme.sh/acme.sh.env: No such file or directory

检测结果:OK!
apt-get update
Hit:1 https://apprepo.vultr.com/debian universal InRelease
Hit:2 https://deb.debian.org/debian bookworm InRelease
Hit:3 https://deb.debian.org/debian-security bookworm-security InRelease
Hit:4 https://deb.debian.org/debian bookworm-updates InRelease
Hit:5 https://debian.mirror.constant.com bookworm InRelease
Reading package lists...

apt-get -y install xz-utils
Reading package lists...
Building dependency tree...
Reading state information...
xz-utils is already the newest version (5.4.1-0.2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

正在检测是否为纯ipv6主机......
curl -4 ip.sb
140.82.8.246

curl -6 ip.sb

检测端口占用情况......
lsof -n -P -i :80 | grep LISTEN
/root/.bashrc: line 21: /root/.acme.sh/acme.sh.env: No such file or directory

lsof -n -P -i :443 | grep LISTEN
/root/.bashrc: line 21: /root/.acme.sh/acme.sh.env: No such file or directory

检测结果:未被占用!
开启防火墙相应端口......
ufw allow 80/tcp
Skipping adding existing rule
Skipping adding existing rule (v6)

ufw allow 80/udp
Skipping adding existing rule
Skipping adding existing rule (v6)

ufw allow 443/tcp
Skipping adding existing rule
Skipping adding existing rule (v6)

ufw allow 443/udp
Skipping adding existing rule
Skipping adding existing rule (v6)

yes | ufw reload
Firewall reloaded

校对时间......
时间差符合要求,OK!
正在检测域名是否解析到当前VPS的IP上......
dig @resolver1.opendns.com A t1.163399.xyz +short -4 | grep -oE '[0-9]+.[0-9]+.[0-9]+.[0-9]+' | head -n 1
172.67.177.55

域名未能正确解析到当前VPS的IP上!安装失败!
发生错误,安装中断......
大佬,填完了还是这样。。。会不会是我那个服务器系统太高了,Debian我选的12。需要搞个11的吗?

@Alvin9999
Copy link
Owner

Alvin9999 commented Feb 20, 2025

你的域名托管在cloudflare后,不要开启代理(小云朵)

@K001-dev
Copy link
Author

我靠,大佬牛逼(破音),真是神了,这小云朵害我不浅呐。

@K001-dev
Copy link
Author

大佬,那个v2ctl.exe和v2ray.exe复制到和配置文件同一个文件夹下,但是启动v2ray.exe显示配置文件有问题:V2Ray v3.0 (die Commanderin) 20171130
An unified platform for anti-censorship.
failed to parse json config: Ext|Tools|Conf|Serial: failed to parse json config > Ext|Tools|Conf: Router settings is not specified.2025/02/21 00:43:16 [Warning]Core: V2Ray started。这是个什么情况?查看了后台进程是有的。那个图标没有出来。

@Alvin9999
Copy link
Owner

如果你的电脑是windows系统,你可以用v2rayN客户端,把账号导入到客户端中就能使用,v2rayN是图形界面客户端,更方便。

@K001-dev
Copy link
Author

如果你的电脑是windows系统,你可以用v2rayN客户端,把账号导入到客户端中就能使用,v2rayN是图形界面客户端,更方便。

好啦!感谢大佬提醒,嘿嘿。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants