如何在google云上使用nodejs vm提供我的内容 [英] How to serve my content with nodejs vm on google cloud

查看:168
本文介绍了如何在google云上使用nodejs vm提供我的内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在谷歌云(计算引擎)上创建了一个nodejs虚拟机实例。我还在计算引擎上创建了3个mongodb实例。现在我将我的本地应用程序推送到Google云存储库。如何将app.js文件链接到此服务器,以便它开始运行脚本并提供文件。我已经更改了我在godaddy上注册的域的A记录,所以它的外部IP与我正在运行的nodejs服务器的IP相同,但我所得到的只是此页面。

解决方案

Bitnami开发者在这里。

您需要将文件复制到远程存储库,创建配置文件,然后必须在Apache的配置中包含该配置以提供应用程序。看起来您已经完成了大部分工作,但其中一个步骤可能存在错误。本指南将帮助您配置您的应用程序以正确访问它。

https://wiki.bitnami。 com / Applications / Bitnami_Custom_Node.js_Application



我希望它有帮助。

Jota


I created a nodejs virtual machine instance on google cloud (compute engine). I also created 3 mongodb instances on the compute engine. Now I pushed my local application to the google cloud repository. How do I link the app.js file to this server so it starts running the script and serving the files. I already changed the A record of my domain that I registered with godaddy so it's external ip is the same as that of the nodejs server I am running but all I am getting is this page.

解决方案

Bitnami developer here.

You need to copy your files to the remote repository, create the configuration files and after that you have to include that configuration in the configuration of Apache to serve the application. It looks like you have done most of the work, but there may be an error in one of the steps. This guide will help you to configure your application in order to access it properly.

https://wiki.bitnami.com/Applications/Bitnami_Custom_Node.js_Application

I hope it helps.

Jota

这篇关于如何在google云上使用nodejs vm提供我的内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆