这篇文章主要为大家展示了“Linux如何查看端口占用并”,内容简而易懂,条理清晰,希望能够帮助大家解决疑惑,下面让小编带领大家一起研究并学习一下“Linux如何查看端口占用并”这篇文章吧。
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
以上是“Linux如何查看端口占用并”这篇文章的所有内容,感谢各位的阅读!相信大家都有了一定的了解,希望分享的内容对大家有所帮助,如果还想学习更多知识,欢迎关注亿速云行业资讯频道!