简体   繁体   English

Google Compute Engine上的Node.js

[英]Node.js on Google Compute Engine

I have established ssh connection. 我已经建立了ssh连接。 Following that, I have run my node.js application by node app.js on port 3000. It showed console output app is running http://0.0.0.0:3000 port same as my local environment. 之后,我通过node app.js在端口3000上运行了node.js应用程序。它显示控制台输出应用程序正在运行与本地环境相同的http://0.0.0.0:3000端口。 But when I opened http://external_ip:3000 it is not loading anything. 但是,当我打开http:// external_ip:3000时,它没有加载任何内容。 How do I have to run my node app on external ip address 我如何在外部IP地址上运行我的节点应用程序

First of all you must have to reserve a static external IP for your VM. 首先,您必须为VM保留一个静态外部IP。 If you want to check whether your project is running or not open this following link. 如果要检查项目是否正在运行,请打开以下链接。

https://[PROJECT-ID].appspot.com HTTPS:// [PROJECT-ID] .appspot.com的

Here is the guide for assigning a static external IP to a VM. 这是为VM分配静态外部IP的指南。 https://cloud.google.com/compute/docs/ip-addresses/reserve-static-external-ip-address https://cloud.google.com/compute/docs/ip-addresses/reserve-static-external-ip-address

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法加载默认凭据? (Node.js 谷歌计算引擎) - Could not load the default credentials? (Node.js Google Compute Engine) 在Google Compute Engine Debian服务器上运行Node.js - Run Node.js on a Google Compute Engine Debian server 如何在谷歌计算引擎上将 node.js 连接到 mysql? - How to connect node.js to mysql on google compute engine? 在Google Compute Engine上使用gcloud安装node.js - install node.js using gcloud on Google Compute Engine 从Google Compute Engine外部访问Node.js服务器 - Reaching Node.js server externally from Google Compute Engine Winston不会在Google Cloud Compute Engine上托管的Node.js应用程序的制作版本中记录事件 - Winston not logging events in productions version of a Node.js app hosted on Google Cloud Compute Engine 无法加载默认凭据? (Node.js 谷歌计算引擎教程) - Could not load the default credentials? (Node.js Google Compute Engine tutorial) 如何使用 Google Cloud Compute Engine 为 Node.JS 应用程序配置端口转发 - How to configure Port Forwarding with Google Cloud Compute Engine for a Node.JS application 无法连接到Node.js的Google Compute Engine教程中的存储服务器 - Can't connect to the storage server in the Google Compute Engine Tutorial for Node.js 修改示例Hello World Node.js代码未在Google Compute Engine中生效 - Modifying sample Hello World Node.js code not taking effect in Google Compute Engine
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM