如何通过Windows服务器中的IP地址访问Apache Tomcat服务器

问题描述 投票:0回答:1

我是服务器领域的新手。我之前从未使用过Windows服务器。我有公共IP并连接到服务器。目前,我在服务器中有IIS,可从互联网(http://103.69.125.162)访问。现在,我需要部署一个JAVA Web App。为此,我安装了Tomcat和Postgresql。 Tomcat可访问tonlocal ip地址或localhost:8080但http://103.69.125.162:8080无法访问。我该怎么做才能使其可以访问公共IP地址。

目前安装的tomcat版本是8.5.3。

tomcat windows-server
1个回答
0
投票

您可以更改server.xml的address<Connector..../>属性

  1. 编辑tomcat / conf / server.xml。
  2. 指定该连接器的绑定地址: <Connector port="8080" protocol="HTTP/1.1" address="Public IP" connectionTimeout="20000" redirectPort="8443" />
© www.soinside.com 2019 - 2024. All rights reserved.