在 Google Compute Engine 上配置 Confluence 端口

2023-12-25

我已在 Google Compute Engine 实例上安装了 Confluence。以下是服务器的配置文件。

<Server port="8000" shutdown="SHUTDOWN" debug="0">
   <Service name="Tomcat-Standalone">
        <Connector  port="8090" connectionTimeout="20000" redirectPort="8443"
                maxThreads="200" minSpareThreads="10"
                enableLookups="false" acceptCount="10" debug="0" URIEncoding="UTF-8" />
        <Engine name="Standalone" defaultHost="localhost" debug="0">
            <Host name="localhost" debug="0" appBase="webapps" unpackWARs="true" autoDeploy="false">
                <Context path="" docBase="../confluence" debug="0" reloadable="false" useHttpOnly="true">
                    <!-- Logger is deprecated in Tomcat 5.5. Logging configuration for Confluence is specified in confluence/WEB-$
                    <Manager pathname="" />
                </Context>
            </Host>
        </Engine>

但是当我输入时我无法访问网络图形用户界面

http://<IP_address>:<port_number>

我也尝试过使用 iptable 进行重定向。

iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT
 --to-port 8090

  • 去你的谷歌云控制台 https://console.developers.google.com
  • 单击您的项目
  • 导航到计算 -> 计算引擎 -> 网络
  • 创建一个新的防火墙规则,源 IP 范围从任意位置 (0.0.0.0/0) 到目标标签“Confluence”以及所需的端口和协议
  • 导航到计算 -> 计算引擎 -> 虚拟机实例
  • 选择您的实例并添加“Confluence”标签
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

在 Google Compute Engine 上配置 Confluence 端口 的相关文章

随机推荐