蓝狐的技术思考 BlueFox Thinking in Tech...
交流,分享,探讨技术...... Communication, Sharing, and Discussion about Technology.....

导航

 

1.tomcat服务器需配置三个端口才能启动,安装时默认启用了这三个端口,当要运行多个tomcat服务时需要修改这三个端口,不能相同。

 端口一:

修改http访问端口(默认为8080端口),配置文件为tomcat\ conf\service.xml

<Connector port="8080" protocol="HTTP/1.1"               connectionTimeout="20000"               redirectPort="8443" />    <!-- A "Connector" using the shared thread pool-->    <!--    <Connector executor="tomcatThreadPool"               port="8080" protocol="HTTP/1.1"               connectionTimeout="20000"               redirectPort="8443" />

端口二:

修改Shutdown远程停服务端口(默认为8005端口)    <Server port="8005" shutdown="SHUTDOWN">

端口三:

 修改AJP端口(默认为8009端口)   <!-- Define an AJP 1.3 Connector on port 8009 -->    <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />

 

2.如果请求地址是https,把https改成http就可以了

 

posted on 2018-02-09 22:25  蓝狐  阅读(1039)  评论(0编辑  收藏  举报