tomcat:改端口

tomcat:改端口
<Connector port="8988" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" />

C:\Users\Administrator\Desktop\apache-tomcat-8.5.35\conf\server.xml

默认8080

系统环境变量

JAVA_HOME
D:\Program Files\Java\jdk1.8.0_181

安装,即注册服务

service.bat install
@echo off
d:
cd /soft/redis
redis-server.exe redis.conf 
exit
set ws=wscript.createobject("wscript.shell") 
ws.run "startup.bat /start",0

单独发布页面html

C:\Users\Administrator\Desktop\apache-tomcat\apache-tomcat-8.0\webapps\ROOT

D:\apache-tomcat-6.0.43\bin,找到setclasspath.bat文件,

在if not "%JAVA_HOME%" == "" goto gotJdkHome这一行前面添加

set JAVA_HOME=C:\Program Files (x86)\Java\jdk1.7.0_79
set JRE_HOME=C:\Program Files (x86)\Java\jre7

打开bin文件夹,找到setclasspath.bat文件,打开,修改

set _RUNJAVA="%JRE_HOME%\bin\java"为

set _RUNJAVA="%JRE_HOME%\bin\javaw"