apache在httpd.conf中设置
tomcat好像在server.xml

解决方案 »

  1.   

    Apache中:
    E:\Apache Group\Apache\conf
    # Port: The port to which the standalone server listens.  Certain 
    # products must be configured before Apache can listen to a specific port.
    # Other running httpd servers will also interfere with this port.  Disable
    # all firewall, security, and other services if you encounter problems.
    # To help diagnose problems use the Windows NT command NETSTAT -a
    #
    Port 80
    Tomcat中:
    <Connector className="org.apache.catalina.connector.http.HttpConnector"
                   port="8080" minProcessors="5" maxProcessors="75"
                   enableLookups="true" redirectPort="8443"
                   acceptCount="10" debug="0" connectionTimeout="60000"/>
    其实在两个文件中搜索80,就可以找到它们的位置。
      

  2.   

    Apache中:
    E:\Apache Group\Apache\conf\httpd.conf(写字板、记事本打开)
    # Port: The port to which the standalone server listens.  Certain 
    # products must be configured before Apache can listen to a specific port.
    # Other running httpd servers will also interfere with this port.  Disable
    # all firewall, security, and other services if you encounter problems.
    # To help diagnose problems use the Windows NT command NETSTAT -a
    #
    Port 80
    Tomcat中:
    E:\Tomcat 4.0\conf\server.xml(写字板打开)
    <Connector className="org.apache.catalina.connector.http.HttpConnector"
                   port="8080" minProcessors="5" maxProcessors="75"
                   enableLookups="true" redirectPort="8443"
                   acceptCount="10" debug="0" connectionTimeout="60000"/>
    其实在两个文件中搜索80,就可以找到它们的位置。
      

  3.   

    如果要各服务器独立启动关闭互不影响 ,那就一定要用多个不同的tomcat和apache,用不同的端口而不能用 虚拟主机的方式