无法在GCP上部署tomcat

时间:2016-09-14 14:17:54

标签: tomcat ubuntu-14.04 google-cloud-platform

我是谷歌云平台的新手。我刚刚在GCP上安装了Ubuntu 14.04LTS操作系统,安装了Java 7 JDK。我在tomcat8上有自己的应用程序。后来,我将我的war文件复制到了tomcat / webapps文件夹。但是" http://GCP_Public_ip:8080/my_app"抛出错误"无法访问此网站"。如何在GCP上部署我的应用程序!

提前致谢。

1 个答案:

答案 0 :(得分:0)

您必须在Google Cloud Platform上打开端口TCP-8080,默认情况下不会打开。 在左侧菜单上单击" Networking"那么"防火墙规则"。单击顶部的按钮"创建新的防火墙规则"对于tomcat(图片如下)。
问候,
罗克。

New Firewall Rule

相关问题