@
版权声明:本文为博主原创文章,转载请注明出处 https://blog.csdn.net/u010042858/article/details/70227660 </div>
<link rel="stylesheet" href="https://csdnimg.cn/release/phoenix/template/css/ck_htmledit_views-f57960eb32.css">
<div id="content_views" class="markdown_views prism-dracula">
<!-- flowchart 箭头图标 勿删 -->
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;"><path stroke-linecap="round" d="M5,0 0,2.5 5,5z" id="raphael-marker-block" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"></path></svg>
<p>今天,更改了一下tomcat的端口,将8080改为8090</p>
结果在tomcat8/bin下电极startup可以启动tomcat,http://localhost:8090/可以打开
但是不用startup,而是点击tomcat8w,点击start,无法启动,service
status一直显示stopped~
原因:
windows 服务内没有tomcat服务,所以无法启动
解决办法
cmd ->管理员权限运行
进入tomcat的bin目录下,我的是E:\tomcat\bin
可以先执行service.bat remove,是为了移除tomcat服务,防止出现问题
如果已经存在会移除,如果不存在会出现“指定服务未安装”
service.bat install , 添加 tomcat 服务
然后启动tomcat ,使用命令 start tomcat8w.exe,或者在E:\tomcat\bin下双击tomcat8w.exe
弹出窗口
点击Start,运行成功,状态变为Service Status :Started
[TOC](这里写自定义目录标题)