本文介绍了GlassFish - 由于端口被占用,我无法部署的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 我正在关注JEE6教程。我在GlassFish和NetBeans之后安装了SDK。虽然从SDK I安装的GlassFish无法使用端口8080,因为它被OracleXE使用。然后我选择了8081.现在,当我尝试将一个简单的项目部署到GlassFish时,我无法做到。这对我来说很奇怪,因为我可以在我的Chrome上打开mycomputer:8081 /和mycomputer:4848 /。经过Google的一些搜索后,我试图通过使用8080终止进程来解决此问题,将GlassFish重新设置为8080,但我仍然无法部署项目并收到端口被占用的消息。这很奇怪,因为我现在可以打开我的计算机:8080和8080端口是我手动启动GlassFish时启动的java.exe。I am following the JEE6 Tutorial. I installed SDK with GlassFish and after NetBeans. While installed GlassFish from SDK I wasn't able to use port 8080 because it was used by OracleXE. Then I chose 8081. Now when I am trying to deployed a simple project to GlassFish I couldn't. It is strange to me because I could open the mycomputer:8081/ and mycomputer:4848/ on my Chrome. After some search by Google, I attempted solve this issue by kill the process using 8080, re-seted the GlassFish to 8080 but I still unable to deployed the project and received the message that the port is occupied. It's strange because I now can open mycomputer:8080 and on port 8080 is java.exe started when I started GlassFish manually.C:\Users\demecarv>netstat -aon | find ":80" | find "LISTENING" TCP 0.0.0.0:80 0.0.0.0:0 LISTENING 4 TCP 0.0.0.0:8080 0.0.0.0:0 LISTENING 1852 TCP 0.0.0.0:8081 0.0.0.0:0 LISTENING 384 TCP 0.0.0.0:8094 0.0.0.0:0 LISTENING 372 TCP 0.0.0.0:8096 0.0.0.0:0 LISTENING 472 TCP [::]:80 [::]:0 LISTENING 4 TCP [::]:8080 [::]:0 LISTENING 1852 我发现: http://stackoverflow.com/questions/2366043/glassfish-v3-domain-server-cannot-start-port-is-occupied [ ^ ]推荐答案 这篇关于GlassFish - 由于端口被占用,我无法部署的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-21 02:22