打开tomcat目录下conf目录下server.xml <Connector port="8066" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" /> <Connector port="8019" protocol="AJP/1.3" redirectPort="8443" /> 只需改掉上port内端口号重启tomcat