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

怎么都启动不起来 !!我保证我没有犯低级错误! #39

Open
xiaopeng1995 opened this issue Nov 28, 2017 · 9 comments
Open

Comments

@xiaopeng1995
Copy link

Exception in thread "main" java.lang.ExceptionInInitializerError
at org.fengfei.lanproxy.server.ProxyServerContainer.(ProxyServerContainer.java:61)
at org.fengfei.lanproxy.server.ProxyServerContainer.main(ProxyServerContainer.java:174)
Caused by: java.lang.IllegalArgumentException: 一个公网端口只能映射一个后端信息,不能重复: 81
at org.fengfei.lanproxy.server.config.ProxyConfig.update(ProxyConfig.java:202)
at org.fengfei.lanproxy.server.config.ProxyConfig.(ProxyConfig.java:102)
at org.fengfei.lanproxy.server.config.ProxyConfig.(ProxyConfig.java:73)
... 2 more

我第一次启动 压根没有配置任何东西 我81端口也好好的 所有要用的端口 都没有冲突 没有占有!

@xiaopeng1995
Copy link
Author

我81端口也没有被占用
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 1598/mysqld
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 941/nginx: master p
tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 932/pure-ftpd (SERV
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 898/sshd
tcp 0 0 0.0.0.0:8888 0.0.0.0:* LISTEN 970/python
tcp 0 0 0.0.0.0:888 0.0.0.0:* LISTEN 941/nginx: master p
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 977/sendmail: accep
tcp6 0 0 :::21 :::* LISTEN 932/pure-ftpd (SERV
tcp6 0 0 :::22 :::* LISTEN 898/sshd
udp 0 0 127.0.0.1:323 0.0.0.0:* 1634/chronyd
udp 0 0 0.0.0.0:43886 0.0.0.0:* 711/dhclient
udp 0 0 0.0.0.0:68 0.0.0.0:* 711/dhclient
udp 0 0 0.0.0.0:123 0.0.0.0:* 1634/chronyd
udp6 0 0 ::1:323 :::* 1634/chronyd
udp6 0 0 :::26567 :::* 711/dhclient
udp6 0 0 :::123 :::* 1634/chronyd
[root@instance-n8kkqjym bin]#

@xiaopeng1995
Copy link
Author

无论如何 都无法启动

java version "1.8.0_144"
Java(TM) SE Runtime Environment (build 1.8.0_144-b01)
Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode)
[root@instance-n8kkqjym bin]#

@xiaopeng1995
Copy link
Author

完全不知道问题出在哪里?我之前用过的 好好的就无法启动了 换成新的 服务端 也无法启动!

@xiaopeng1995
Copy link
Author

duplicate inet port 81
所有版本 都是报这个错误
究竟是啥意思

@xiaopeng1995
Copy link
Author

我服务器 开什么不改开的东西了???????

@ffay
Copy link
Owner

ffay commented Nov 28, 2017

删除系统中 ~/.lanproxy/ 这个文件夹后再试试

@xiaopeng1995
Copy link
Author

我去试试

@xiaopeng1995
Copy link
Author

这个文件 找不到

@bejondshao
Copy link

bejondshao commented Dec 13, 2017

Hi @xiaopeng1995 ,
从问题看是你在server端配置了两个81端口mapping。 你应该检查下你的server配置, 是否是两个client用了81端口。 正常来讲两个81端口是保存不了的。
删除.lanproxy应该好用。如果你用linux, .lanproxy在当前用户目录下,是隐藏目录, 可以执行 $ rm -rf ~/.lanproxy删除。
如果是windows, 在用户目录下, 一般为C:\Users\youruser\.lanproxy。

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

3 participants