Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/node.js/40.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Node.js 托管Nodejs应用程序_Node.js_Web Hosting - Fatal编程技术网

Node.js 托管Nodejs应用程序

Node.js 托管Nodejs应用程序,node.js,web-hosting,Node.js,Web Hosting,我正在localhost:3000上运行一个应用程序,现在我希望使用我的家庭网络来托管它。 我在windows机器上运行,我已经查看了很多指南,但似乎没有一个是足够完整的。 非常感谢您的帮助。当您在localhost:3000中运行应用程序时,您的应用程序此时处于联机状态,在您的专用网络中。。。如果你想从电脑外部检查你的应用程序 你需要这一点 1- check the principal adress pc, the ip 2- you computer, shut down your fir

我正在localhost:3000上运行一个应用程序,现在我希望使用我的家庭网络来托管它。 我在windows机器上运行,我已经查看了很多指南,但似乎没有一个是足够完整的。
非常感谢您的帮助。

当您在localhost:3000中运行应用程序时,您的应用程序此时处于联机状态,在您的专用网络中。。。如果你想从电脑外部检查你的应用程序

你需要这一点

1- check the principal adress pc,  the ip
2- you computer, shut down your firewall,,  some times block you app.
3- in your second computer, connect in the same wifi, and  put adress  in a 
 browser and port, and you will  saw you app online
没有真实的例子

通过1.63.21.0:3000更改ww.example.com

为了让你的应用程序一直运行,当你的应用程序完成时,你需要这个comand

永久启动app.js

这意味着,在你的电脑打开的所有时间里,你的应用程序将启动,提供服务,在这种情况下,你的应用程序

参考文献


如果你真的想建立一个服务器,把你的电脑放在互联网世界里,你需要配置你的调制解调器和购买一些地址。。就像互联网上的主机一样,一个域名,希望能帮你发这条信息

我建议你使用像Heroku这样的服务,而不是你的家庭网络,它有更好的正常运行时间,您只需担心应用程序中的代码,而不必担心网络和系统架构。

那么您的意思是将计算机的IP地址用作公共IP。。。(其他机器上的用户将能够使用您机器的IP访问您的应用程序)