在tomcat 的conf目录下的server.xml里面添加如下代码:
<Service name="newtest">
<Connector port="8089"
protocol="HTTP/1.1"
connectionTimeout="20000"
URIEncoding="GBK"
redirectPort="8443" />
<-- host ip address-->
<Engine name="newtest" defaultHost="***.***.***.***">
<Host name="***.***.***.***" appBase="/opt/tomcat8/webapps" unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
<Context path="/" docBase="/home/yc/image" debug="0" reloadable="false"/>
</Host>
</Engine>
</Service>