linux tomcat启动与端口占用查看

Linux启动tomcat


[plain] view plain copy
  1. ./startup.sh  

linux tomcat启动与端口占用查看_第1张图片


linux停止tomcat


[plain] view plain copy
  1. ./shutdown.sh  



但是有时tomcat进程并没有终止,再次启动的时候就会导致端口占用情况发生,tomcat无法启动。


查看tomcat进程是否存在


[plain] view plain copy
  1. ps -aux | grep tomcat  

linux tomcat启动与端口占用查看_第2张图片


关闭tomcat进程


[plain] view plain copy
  1. kill -9 pid  



查看端口占用


[plain] view plain copy
  1. netstat -tunlp |grep port  


[plain] view plain copy
  1. netstat -nlptu |awk '{print $4,$7}' | grep port  

linux tomcat启动与端口占用查看_第3张图片

你可能感兴趣的:(Linux)