Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/unix/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Linux 如何杀死';隐形';在端口上运行的进程_Linux_Unix_Glassfish_Port_Kill Process - Fatal编程技术网

Linux 如何杀死';隐形';在端口上运行的进程

Linux 如何杀死';隐形';在端口上运行的进程,linux,unix,glassfish,port,kill-process,Linux,Unix,Glassfish,Port,Kill Process,在linux机器上,我正在尝试启动Glassfish服务器 ./startserv 这将返回以下消息: There is a process already running using the admin port 4848 -- it is probably another instance of a Glassfish server 已尝试使用以下命令确定这是哪个进程: lsof -t -i tcp:4848 在运行Glassfish的另一台计算机上,此命令返回Glassfish使用的

在linux机器上,我正在尝试启动Glassfish服务器

./startserv
这将返回以下消息:

There is a process already running using the admin port 4848 -- it is probably another instance of a Glassfish server
已尝试使用以下命令确定这是哪个进程:

lsof -t -i tcp:4848
在运行Glassfish的另一台计算机上,此命令返回Glassfish使用的进程id。但是,在出现问题的机器上,没有返回任何内容

考虑到
lsof-t-itcp:4848
没有帮助,使用端口4848识别和终止进程的最佳方法是什么

谢谢

尝试以root用户身份运行:

netstat-tlenp | grep:4848'

在最后一列中,您有侦听端口的进程的pid/名称。 现在,您应该能够终止由pid标识的进程


这可能对您有所帮助:Try ss-lnp | grep 4848 Try ss-lnp | grep 4848-也不返回任何内容,它在Glassfish已经运行的服务器上工作