标签:htm serve center tomcat7 audio 端口 ajp href efault
以apache-tomcat-7.0.6为例,进入tomcat安装目录,编辑文件“安装目录\apache-tomcat-7.0.6\conf\server.xml”(可以用记事本打开)
在server.xml文件中依次查找并修改端口号:
<Server port="8005" shutdown="SHUTDOWN">
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443"/>
<Connector connectionTimeout="20000" port="8080" protocol="HTTP/1.1" redirectPort="8443"/>
在server.xml文件中依次查找修改
<Server port="8005" shutdown="SHUTDOWN">
修改为:
<Server port="8006" shutdown="SHUTDOWN">
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443"/>
修改为:
<Connector port="8010" protocol="AJP/1.3" redirectPort="8444"/>
<Connector connectionTimeout="20000" port="8080" protocol="HTTP/1.1" redirectPort="8443"/>
修改为:
<Connector connectionTimeout="20000" port="8081" protocol="HTTP/1.1" redirectPort="8444"/>
启动tomcat,访问http://localhost:8081/ ;能成功访问,说明修改成功(访问的端口跟据配置文件中设置的Connector 端口)
标签:htm serve center tomcat7 audio 端口 ajp href efault
原文地址:https://www.cnblogs.com/dieyaxianju/p/9500810.html