如何将 Node.js 放在我的托管网站上 [英] How to i put Node.js on my hosting website

查看:68
本文介绍了如何将 Node.js 放在我的托管网站上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对 node.js 在网络托管服务器上的工作方式有些困惑.

I'm a little confused on how node.js works on web hosting servers.

现在我明白了当我在我的电脑上下载 node.js 时它是如何工作的,我运行文件和东西并且 node.js 文件在我的电脑上.

Now i understand how it works when i download node.js on my computer, i run files and stuff and the node.js files are on my computer.

我不明白的是我如何在我的网络托管服务器上运行 node.js.

What i dont understand is how i run node.js on my web hosting server.

如果 node.js 是一个可下载的文件,我如何让它在我的服务器上运行...

If node.js is a downloadable file, how do i get it to run on my server...

我是否只是在我的计算机上找到了 node.js(或其他任何名称)的文件并将其上传到我的服务器?

Do i just find the file on my computer that says node.js(or whatever its called) and upload that to my server?

任何有关如何在我的服务器上运行 node.js 的说明都会有所帮助.

Any clarification on how to run node.js on my server will help.

谢谢!

推荐答案

服务器只是在某处运行 Linux、Windows 等操作系统但大规模运行的另一台计算机.现在,如果您的网络托管服务器是共享服务器或免费计划服务器(例如 Heroku),Node.js 会自动配置,这是一个很棒的网络拥有出色托管计划的托管公司.

A server is just another computer somewhere running OS like Linux, Windows and others but at large scale. Now Node.js is automatically configured if your web hosting server is a shared server or free plan server like Heroku, an awesome web hosting company with great hosting plan.

您只能在网络托管服务器上安装 Node.js,前提是它是专用服务器,例如 Amazon 或 Digital Ocean 上的 Ubuntu 机器.我认为你不应该太为难自己.如果您想将 Node.js 应用程序从本地主机移动到 Web 服务器,我鼓励您阅读 heroku 文档或此 scotch.io 链接.非常简单.

You only get to install Node.js on a web hosting server if its a dedicated server like an Ubuntu Machine on Amazon or Digital Ocean. I don't think you should bother yourself much. If you want to move your Node.js app from localhost to a web server I encourage you to read heroku documentation or this scotch.io link. It is extremely simple.

这篇关于如何将 Node.js 放在我的托管网站上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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