Glassfish已经有一个使用管理端口4848的进程 [英] Glassfish There is a process already using the admin port 4848

查看:303
本文介绍了Glassfish已经有一个使用管理端口4848的进程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

asadmin start-domain domain1

但是它显示此错误.

 There is a process already using the admin port 4848 -- it probably is another instance of a GlassFish server.

我搜索后发现,它可能是主机名,或者该端口已被其他应用程序或服务器使用,而实际上它已由TCP使用.

I have searched and found that it could be the hostname or that the port is used by an other application or server and actually it is used by TCP.

我的主机名没有问题,因此我尝试通过更改端口来尝试此解决方案.

I have no problem with the hostname so I've tried this solution by changing port.

  asadmin set server.http-service.http-listener.http-listener-1.port=10080

但显示此错误

remote failure: No configuration found for server.http-service.http-listener.http-listener-1
Command set failed.

我不明白为什么.

推荐答案

假设您正在linux下运行glassifhs

Assuming you are running glassifhs under linux

1-检查玻璃鱼是否已经流产.

1 - Check if glassfish is already runnig.

ps -ef |grep java

杀死任何与glassfish相关的Java程序

kill any process java relative to glassfish

2-检查端口4848是否正在使用中

2 - Check if the port 4848 is in use

netstat -nao |grep 4848

3-更改默认端口

编辑文件{glassfish_home}/config/asadminenv.conf

Edit the file {glassfish_home}/config/asadminenv.conf

AS_ADMIN_PORT=4848

这篇关于Glassfish已经有一个使用管理端口4848的进程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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