Java 如何在 Windows Vista 命令提示符下检查端口 8080?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6606612/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to check port 8080 in Windows Vista command prompt?
提问by Imbecile
I am very new to programming and setting up Java Servers. Actually its my first time to try it but not successful. I am about to test my first web app in Java but whenever I click the "Start server in debug mode" button in Eclipse I am always having error about my Tomcat server saying that port 8080 is being used. I wanna know how am I gonna check it in the console and close it if possible. Do you know other ways on dealing with this??? I also tried netstat but can't find the port 8080 among the list. Please help me out because I am really getting frustrated. I a tried whatever solution I find in google but still having the same problem. If you can explain to me what's going on that would be very helpful. Thanks in advance.
我对编程和设置 Java 服务器非常陌生。其实这是我第一次尝试,但没有成功。我即将用 Java 测试我的第一个 Web 应用程序,但是每当我在 Eclipse 中单击“在调试模式下启动服务器”按钮时,我的 Tomcat 服务器总是出现错误,提示正在使用端口 8080。我想知道如何在控制台中检查它并在可能的情况下关闭它。你知道处理这个的其他方法吗???我也尝试过 netstat 但在列表中找不到端口 8080。请帮助我,因为我真的很沮丧。我尝试了在谷歌找到的任何解决方案,但仍然遇到同样的问题。如果你能向我解释发生了什么,那将非常有帮助。提前致谢。
回答by Raptor
Use the following command:
使用以下命令:
netstat -an | find ":8080"
to check whether the port 8080 is open.
检查8080端口是否打开。
回答by Manish
try using the following command: \> netstat -a
尝试使用以下 command: \> netstat -a