<Service name="8087Port">
<Connector port="8087" protocol="HTTP/1.1" connectionTimeout="20000" useBodyEncodingForURI="true" redirectPort="8443"/>
<Engine name="" defaultHost="127.0.0.1">
<!-- 如果想要IP直接访问到,appBase中不要填内容,如:localhost:8087 -->
<Host name="127.0.0.1" appBase="" unpackWARs="true" autoDeploy="true">
<!--<Alias>127.0.0.1</Alias>-->
<Context path="" docBase="webapps/xxx.war" privileged="true"/>
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
prefix="door_log" suffix=".txt"
pattern="%h %l %u %t "%r" %s %b" />
</Host>
</Engine>
</Service>
tomcat部署war项目,并且直接端口访问配置方法
阅读 531
阅读 544
阅读 732
推荐阅读
阅读 1,162
阅读 1,144
阅读 1,872
阅读 1,505
阅读 862
阅读 1,894
阅读 1,348
阅读 1,295
阅读 1,100