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

NetUtil#isPortInUse方法 #15

Open
TuringBecky opened this issue Mar 16, 2020 · 1 comment
Open

NetUtil#isPortInUse方法 #15

TuringBecky opened this issue Mar 16, 2020 · 1 comment

Comments

@TuringBecky
Copy link

第一次运行dorado.demo.simple.ThriftProvider时,报错提示No available port
我将NetUtil类的isPortInUse方法中try/catch的返回值互调后才能够正常运行,请问这是怎么回事?

@tiancihui
Copy link
Member

应该是端口被占用了?可以先netstat -anp | grep port 查看port是否被占用

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