为什么GlassFish管理端口没有停止发布

时间:2013-12-26 16:39:21

标签: glassfish glassfish-4

我在Mac OSX 10.9.1上遇到过GlassFish 4的时间。

之前从未遇到过这个问题。我第一次推出GlassFish,一切正常。 然后我关闭它,这是有效的。 然后,当我再次启动时,它显示管理端口:4848正忙。

显然关机没有释放管理端口。 (虽然它确实似乎正在关闭,因为如果我尝试从我的浏览器导航到localhost:4848它会挂起)

当我执行lsof -i:4848时,它会显示“*:appserv-http(LISTEN)”正在侦听。当我杀掉-9那个释放端口的进程时。但为什么它需要如此困难(特别是因为我的IDE无法处理这一切!)

如果asadmin stop-domain不能正常工作,是否有人有更自动化的想法如何停止域名?

victors-mbp:~ vgrazi$ cd programs/glassfish4/glassfish/bin/
victors-mbp:bin vgrazi$ ./asadmin start-domain
Waiting for domain1 to start ........
Successfully started the domain : domain1
domain  Location: /Users/vgrazi/programs/glassfish4/glassfish/domains/domain1
Log File: /Users/vgrazi/programs/glassfish4/glassfish/domains/domain1/logs/server.log
Admin Port: 4848
Command start-domain executed successfully.

victors-mbp:bin vgrazi$ ./asadmin stop-domain
CLI306: Warning - The server located at /Users/vgrazi/programs/glassfish4/glassfish/domains/domain1 is not running.
Command stop-domain executed successfully.

victors-mbp:bin vgrazi$ ./asadmin start-domain
There is a process already using the admin port 4848 -- it probably is another instance of a GlassFish server.
Command start-domain failed.
victors-mbp:bin vgrazi$

0 个答案:

没有答案