1. 配置Tomcat环境变量CATALINA_HOME; 2. windows命令进入Tomcat\bin目录;Eg:cd C:\Program Files (x86)\Apache Software Foundation\Tomcat 8.0\bin 3. 命令添加Tomcat进入服务service.bat install; 4. 从服务命令删除Tomcat服务service.bat remove;