今天上课需要启动多个tomcat,但是只能启动一个tomcat.多启动的会闪退.
原因:
首先,网上的教程会让你修改端口号,一般这样是可以启动的.
特殊情况,如果有tomcat_home的环境变量那么也不会多个启动成功.
另外,还有一个catlina_home的环境变量,如果存在也不会启动成功.
没有管理员权限也会闪退,可以使用cmd加载到tomcat的bin目录下,使用cmd启动startup.bat
解决办法:
首先要确定修改端口号正确(即互不占用),
其次,如果存在tomcat环境变量需要删除.
需要在管理员权限下操作.
标签: tomcat
推荐阅读:
vue.js:634 [Vue warn]: Property or method "userName" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See:
状态码:415,发送HTTP请求返回415状态码的解决办法
SpringBoot 整合 webapp时 访问404的解决办法
Vue 打开页面时就加载方法,例如查询
SpringCloud怎么调用多个服务的信息
Spring整合Mybatis
SpringCloud 加入 thymleaf前端页面的方法
Controller之间的跳转
Spring AOP的实现原理
This may be the result of an unspecified view, due to default view name generation
行动消除疑虑