1.{tomcat path}/bin 目录下service.bat,startup.bat,shutdown.bat 顶部分别加入两行
set JAVA_HOME=C: estjdk1.8.0_121
set CATALINA_HOME=C: estapache-tomcat-8.0.48
2.{tomcat path}/conf server.xml 修改三个端口
<Server port="8005" shutdown="SHUTDOWN"> <Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" /> <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
如果还不能打开继续修改端口看看,有时是因为端口冲突。