Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我目前在端口 80 上运行 Apache,它有很多域设置。我需要安装 Tomcat 7 并在端口 80 上运行它。我知道如何配置它,但是如何让我的旧 Apache 和 Tomcat 在同一个端口 80 上运行?
您可以通过为网卡分配辅助 IP 地址来进行设置。谷歌程序或与您的系统管理员(Windows 或 Unix)联系以寻求帮助。配置辅助 IP 地址后,您可以设置 apache 的第二个实例以在端口 80 上监听它。为方便起见,您还可以为该 IP 地址设置 DNS 条目,以便您可以使用名称访问它与IP地址。