答案:在Tomcat的conf文件夹里有个server.xml文件,修改里面的<Connector
port="80" maxHttpHeaderSize="8192"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true" />这段代码,那个port值就是端口号!