gpt4 book ai didi

java - Glassfish 在后台运行

转载 作者:可可西里 更新时间:2023-11-01 02:32:24 26 4
gpt4 key购买 nike

Glassfish Server 在后台运行,我无法停止、启动或重新启动该进程。我知道,重启系统就可以了。是否有其他进程停止进程?

详情如下:

  1. 当我尝试停止时,它说 domain1 没有运行:

    C:\Server\glassfish4\glassfish\bin>asadmin stop-domain
    CLI306: Warning - The server located at C:\Server\glassfish4\glassfish\domains\domain1 is not running.
    Command stop-domain executed successfully.

  2. 但是我可以在 Web 浏览器中为 http://localhost:4848/common/index.jsf 打开管理控制台

  3. 当我尝试启动或重新启动时它抛出错误:

    C:\Server\glassfish4\glassfish\bin>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.

    C:\Server\glassfish4\glassfish\bin>asadmin restart-domain Server is not running, will attempt to start it... There is a process already using the admin port 4848 -- it probably is another instance of a GlassFish server. Command restart-domain failed.

  4. 我尝试使用 netstat -a -n -o 命令为端口 4848 查找 PID。我有两个条目但没有本地主机 ID:

    TCP    0.0.0.0:4848           0.0.0.0:0              LISTENING       9116 
    TCP [::]:4848 [::]:0 LISTENING 9116

最佳答案

试试这个

taskkill /F /PID 9116

同时找到占用端口 8080 的进程的 PID 并杀死它们。 (如果上述解决方案不起作用)

netstat -aon | find "LISTENING" | find ":8080"
taskkill /F /PID process_id_here

关于java - Glassfish 在后台运行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31672193/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com