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.
我的tomcat服务器在eclipse中运行良好,但是当我使用独立的tomcat时,我无法从本地主机的外部ip访问它..有人知道为什么会这样吗?
在 Tomcat 安装目录中的目录下查找server.xml文件。/conf找到<Connector>声明并添加address="0.0.0.0":
server.xml
/conf
<Connector>
address="0.0.0.0"
<Connector port="8080" address="0.0.0.0"