Google compute engine 在Google Compute engine上为汇流配置端口

Google compute engine 在Google Compute engine上为汇流配置端口,google-compute-engine,confluence,portforwarding,Google Compute Engine,Confluence,Portforwarding,我已经在Google计算引擎实例上安装了Confluence。以下是服务器的配置文件 <Server port="8000" shutdown="SHUTDOWN" debug="0"> <Service name="Tomcat-Standalone"> <Connector port="8090" connectionTimeout="20000" redirectPort="8443" maxThread

我已经在Google计算引擎实例上安装了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>
  • 去你的房间
  • 点击你的项目
  • 导航到计算->计算引擎->网络
  • 创建一个新的防火墙规则,其源ip范围从任意位置(0.0.0.0/0)到目标标记“Confluence”以及所需的端口和协议

  • 导航到计算->计算引擎->虚拟机实例
  • 选择您的实例并添加“Confluence”标记

我使用了8090和8000端口,它工作正常,但在显示设置页面之前,我不得不等待很长时间。此外,端口8000可能不是必需的,但我还没有测试。8090是confluence的默认值,8080是jira的默认值。对我来说,我不得不等待一段荒谬的时间,我不知道我睡了多久,早上才能进入设置页面。
http://<IP_address>:<port_number>
iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT
 --to-port 8090