Linux 檢視埠占用並

yhj20041128001發表於2018-09-21


netstat -apn|grep 8080

[oracle@test data-integration]$ netstat -apn|grep 8080

(Not all processes could be identified, non-owned process info

 will not be shown, you would have to be root to see it all.)

tcp        0      0 ::ffff:192.168.71.128:8080  :::*                        LISTEN      5344/java  


ps -aux|grep 5344


[oracle@test data-integration]$ ps -aux|grep 5344Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.8/FAQ

oracle    5344  0.3  5.8 4156840 345884 pts/1  Sl   05:27   0:07 /usr/java/jdk1.8.0_121/bin/java -Dorg.mortbay.util.URI.charset=UTF-8 -Xms1024m -Xmx2048m -XX:MaxPermSize=256m -Dhttps.protocols=TLSv1,TLSv1.1,TLSv1.2 -Djava.library.path=./../libswt/linux/x86_64/ -DKETTLE_HOME= -DKETTLE_REPOSITORY= -DKETTLE_USER= -DKETTLE_PASSWORD= -DKETTLE_PLUGIN_PACKAGES= -DKETTLE_LOG_SIZE_LIMIT= -DKETTLE_JNDI_ROOT= -jar /home/oracle/data-integration/launcher/pentaho-application-launcher-7.1.0.0-12.jar -lib ./../libswt/linux/x86_64/ -main org.pentaho.di.www.Carte 192.168.71.128 8080

oracle    6988  0.0  0.0 103308   804 pts/5    S+   06:09   0:00 grep 5344


kill -9  5344


來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/23757700/viewspace-2214691/,如需轉載,請註明出處,否則將追究法律責任。

相關文章