日期:2014-05-18  浏览次数:20738 次

请问各位如何改变tomcat上网页服务的端口号以及访问的url
比如我现在访问要用100.100.100.100:8080/MyWeb/index.jsp
如果我想只用100.100.100.100就能访问请问我应该怎么设置tomcat呢?

------解决方案--------------------
把tomcat下面的server.xml文件这段内容改了端口就行了。就是把8080改为80。
<Connector
port= "80 " maxThreads= "150 " minSpareThreads= "25 " maxSpareThreads= "75 "
enableLookups= "false " redirectPort= "8443 " acceptCount= "100 "
debug= "0 " connectionTimeout= "20000 " URIEncoding= "GBK "
disableUploadTimeout= "true " />