1.查看命令
ps -ef|grep apache-tomcat-9090|grep -v grep|awk '{print $2}'
如果存在两个端口则多次重启,
2.停掉命令:
kill -9 端口号
注:apache-tomcat-9090为Tomcat的执行文件。