1、进入到tomcat的bin目录,使用tomcat自带的脚本安装tomcat服务 service.bat install Tomcat9 2、移除tomcat服务 service.bat remove Tomcat9