[英]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.