无法启动GlassFish 4.0(Windows) - 端口1527 - 地址已被使用 [英] Could not start GlassFish 4.0 (Windows) - port 1527 - Address already in use

查看:827
本文介绍了无法启动GlassFish 4.0(Windows) - 端口1527 - 地址已被使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我使用GlassFish 4.0和Java EE 7创建Netbeans 7.4。在64位Windows 8.1 Pro机器上。我想启动GlassFish 4.0服务器,所以我点击Netbeans中的服务选项卡,然后在服务器选项中右键单击GlassFish Server 4.0,然后单击开始。



当我这样做时,我收到以下消息:无法启动GlassFish Server 4.0:服务器未运行时HTTP或HTTPS侦听器端口被占用。我也有IIS服务器,但我停止了它。在停止IIS之后,我尝试重新启动GlassFish,但它向我显示了相同的消息。



另外Netbeans中有一个名为 Output - Java DB Database Process

2014年5月22日星期二22:03:11 GMT-05:00 $:

 使用基本服务器安全策略安装安全管理器。 
Tue May 06 22:03:11 GMT-05:00 2014 Thread [main,5,main] java.io.FileNotFoundException:D:\ Users \Juan Jose \.netbeans-derby\derby .log(访问被拒绝)
Tue May 06 22:03:12 GMT-05:00 2014:无法侦听主机localhost上的端口1527:
java.net.BindException:地址已在使用中:JVM_Bind
Tue May 06 22:03:12 GMT-05:00 2014:无法侦听主机localhost上的端口1527:
java.net.BindException:已在使用的地址:JVM_Bind

我在Windows中运行netstat -a以查看1527端口发生了什么,并且该端口处于LISTENING模式。



那么我怎么知道应用程序或进程是否支持1527端口?

感谢您的帮助!!

解决方案

要查找保留繁忙端口的进程 1 ,请尝试以下命令:

  netstat -ano |找到1527

这将显示一行与进程的端口和标识符。例如:

  TCP 127.0.0.1:1527 0.0.0.0:0 LISTENING 2268 

一旦获得进程ID(例如 2268 ),运行以下命令释放该端口(这会杀死进程):

  taskkill / F / PID 2268 

现在,尝试启动Glassfish。




在Linux上:

  lsof -Pnl + M -i6 | grep 1527 

产生:

  java 31139 1001 32u IPv6 114916062 0t0 TCP 127.0.0.1:1527(LISTEN)



<

  kill -9 31139 






1 如果您想了解关联程序,请参阅如何找出使用某个端口的服务?

I'm a newbie in Java EE 7.

I have Netbeans 7.4 with GlassFish 4.0 and Java EE 7. In a 64-bit Windows 8.1 Pro machine. I want to start the GlassFish 4.0 Server, so I clicked on the services tab in Netbeans and then in the Servers option I right-clicked GlassFish Server 4.0 and then clicked Start.

When I did that I got the following message: "Could not start GlassFish Server 4.0: HTTP or HTTPS listener port is occupied while server is not running". I have also the IIS server, but I stopped it. After stopping IIS I tried to start again the GlassFish but it showed me the same message.

Also there is a window in Netbeans called Output - Java DB Database Process and it showed me the following:

Tue May 06 22:03:11 GMT-05:00 2014 : Security manager installed using the Basic server security policy.
Tue May 06 22:03:11 GMT-05:00 2014 Thread[main,5,main] java.io.FileNotFoundException: D:\Users\Juan Jose\.netbeans-derby\derby.log (Access is denied)
Tue May 06 22:03:12 GMT-05:00 2014 : Could not listen on port 1527 on host localhost:
 java.net.BindException: Address already in use: JVM_Bind
Tue May 06 22:03:12 GMT-05:00 2014 : Could not listen on port 1527 on host localhost:
 java.net.BindException: Address already in use: JVM_Bind

I ran a netstat -a in Windows to see what was happening with the 1527 port and that port is in LISTENING mode.

So how can I know what application or process is ocuppying the 1527 port?

Thanks for your help !!

解决方案

To find the process1 that keeps the busy port, try the following command:

netstat -ano | find "1527"

This will show a line with the port and the identifier of the process. e.g.:

TCP    127.0.0.1:1527         0.0.0.0:0              LISTENING       2268

Once you have the process ID (e.g. 2268), run the following command for release the port (this will kill the process):

taskkill /F /PID 2268

Now, try to start Glassfish.


On Linux:

lsof -Pnl +M -i6 | grep 1527

Produces:

java    31139     1001   32u  IPv6 114916062      0t0  TCP 127.0.0.1:1527 (LISTEN)

Killed with:

kill -9 31139


1 If you want to know the associated program, see How do I find out what service is using a certain port?

这篇关于无法启动GlassFish 4.0(Windows) - 端口1527 - 地址已被使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆