在端口8080中有一个监听程序,每次获得新的PID时我都无法杀死它
lsof -i tcp:8080
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
java 809 user 42u IPv6 0xd6c1091fd72f0f8f 0t0 TCP *:http-alt (LISTEN)
ps -ef 809
UID PID PPID C STIME TTY TIME CMD
502 809 1 0 12:04 ?? 0:09.14 /Library/Java/JavaVirtualMachines/jdk-
12.0.1.jdk/Contents/Home/bin/java -
Djava.util.logging.config.file=/usr/local/opt/tomcat/libexec/conf/logging.properties -
Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -
Djava.protocol.handler.pkgs=org.apache.catalina.webresources -
Dorg.apache.catalina.security.SecurityListener.UMASK=0027 -Dignore.endorsed.dirs= -classpath
/usr/local/opt/tomcat/libexec/bin/bootstrap.jar:/usr/local/opt/tomcat/libexec/bin/tomcat-juli.jar -
Dcatalina.base=/usr/local/opt/tomcat/libexec -Dcatalina.home=/usr/local/opt/tomcat/libexec -
Djava.io.tmpdir=/usr/local/opt/tomcat/libexec/temp org.apache.catalina.startup.Bootstrap start
我尝试过Kill -9 PID但是没办法。请,任何建议
如果您知道PID,则可以打开任务管理器(ctrl + shift + esc)以终止/暂停该过程。打开选项卡服务并搜索正确的PID,右键单击选项。