我尝试使用关闭tomcat./shutdown.sh
来自雄猫/bin
目录。但发现服务器没有正常关闭。因此我无法重新启动
我的 tomcat 正在端口上运行8080
.
我想杀死正在运行的tomcat进程8080
。我首先想要获得在特定端口 (8080) 上运行的进程列表,以便选择要终止的进程。
This fuser 8080/tcp
将打印绑定在该端口上的进程的 PID。
和这个fuser -k 8080/tcp
将杀死该进程。
仅适用于 Linux。更普遍的是使用lsof -i4
(对于 IPv6 为 6)。
一般形式:
# list the TCP process bound to port PORT
fuser PORT/tcp
# Example: list the TCP process bound to port 8080
fuser 8080/tcp
# list the UDP process bound to port PORT
fuser PORT/udp
# Example: list the UDP process bound to port 8080
fuser 8080/udp
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)