nps 安装完成之后,web管理端打不开,访问端口已放行,但是还不行

jjjwad0x  于 2个月前  发布在  其他
关注(0)|答案(5)|浏览(59)

2021/11/20 19:52:46.553 [I] [nps.go:202] the version of server is 0.26.10 ,allow client core version to be 0.26.0
2021/11/20 19:52:46.672 [I] [server.go:200] tunnel task start mode:httpHostServer port 0
2021/11/20 19:52:46.672 [I] [connection.go:71] web management start, access port is 8088
2021/11/20 19:52:46.688 [I] [connection.go:36] server start, the bridge type is tcp, the bridge port is 8024
2021/11/20 19:52:46.689 [I] [connection.go:62] start https listener, port is 443
2021/11/20 19:52:46.690 [E] [http.go:82] listen tcp 0.0.0.0:443: bind: address already in use
2021/11/20 19:56:04.441 [I] [nps.go:202] the version of server is 0.26.10 ,allow client core version to be 0.26.0
2021/11/20 19:56:04.815 [I] [server.go:200] tunnel task start mode:httpHostServer port 0
2021/11/20 19:56:04.815 [I] [connection.go:71] web management start, access port is 8088
2021/11/20 19:56:04.829 [I] [connection.go:36] server start, the bridge type is tcp, the bridge port is 8024
2021/11/20 19:56:04.829 [I] [connection.go:62] start https listener, port is 443
2021/11/20 19:56:04.829 [E] [http.go:82] listen tcp 0.0.0.0:443: bind: address already in use
2021/11/20 19:58:04.854 [I] [nps.go:202] the version of server is 0.26.10 ,allow client core version to be 0.26.0
2021/11/20 19:58:04.994 [I] [server.go:200] tunnel task start mode:httpHostServer port 0
2021/11/20 19:58:04.994 [I] [connection.go:71] web management start, access port is 8088
2021/11/20 19:58:05.008 [I] [connection.go:36] server start, the bridge type is tcp, the bridge port is 8024
2021/11/20 19:58:05.009 [I] [connection.go:62] start https listener, port is 443
2021/11/20 19:58:05.009 [E] [http.go:82] listen tcp 0.0.0.0:443: bind: address already in use

w8f9ii69

w8f9ii691#

直接在本地访问
另外,https管理端口443已被其它程序占用,可以顺便换个端口,看看是否对问题有改善。

gmxoilav

gmxoilav2#

应当是启动失败了,netstat查看tcp端口使用情况,设置的对应端口没有被监听,查看日志发现是80端口已被占用,之前部署了nginx

f5emj3cl

f5emj3cl3#

如果发现没有启动成功,可以使用nps(.exe) stop,然后运行**nps.(exe)**运行调试,或查看日志(Windows日志文件位于当前运行目录下,linux和darwin位于/var/log/nps.log)

访问服务端ip:web服务端口(默认为8080)
使用用户名和密码登陆(默认admin/123,正式使用一定要更改)
创建客户端

我的是 80和443 被占用,改成其他端口就可以了

mwecs4sa

mwecs4sa4#

我也遇到了这个问题,在conf/nps.conf 中已经修改了http_proxy_prot和https_proxy_prot。

但是运行 nps 命令 依旧提示:
[E] [http.go:82] listen tcp 0.0.0.0:443: bind: address already in use

后来发现,安装后的conf 不在从 安装目录下的 conf/nps.conf 中获取,而是从 /etc/nps/conf/nps.conf 获取
The new configuration file is located in /etc/nps you can edit them

nbysray5

nbysray55#

/etc/nps/conf/nps.conf 在这个位置 把 80 和 443 改掉 可以实现正常访问

相关问题