tomcat9:Error running ‘tomcat9‘: Address localhost:1099 is already in use

Error running ‘tomcat9’: Address localhost:1099 is already in use
启动tomcat时,出现这错误是1099端口被占用

解决方法:
1.打开cmd,输入netstat -ano
tomcat9:Error running ‘tomcat9‘: Address localhost:1099 is already in use
占用1099的是进程21980

2.再输入tasklist

tomcat9:Error running ‘tomcat9‘: Address localhost:1099 is already in use
找到
tomcat9:Error running ‘tomcat9‘: Address localhost:1099 is already in use
占用端口的是java.exe

3.打开任务资源管理器
tomcat9:Error running ‘tomcat9‘: Address localhost:1099 is already in use
点击结束进程,在启动tomcat就不会报错了。