简体   繁体   English

在linux上创建我自己的nodejs web服务器

[英]create my own nodejs web server on linux

I just want to setup a nodejs webserver host on linux. 我只想在linux上设置nodejs webserver主机。 It will be for development purposes only. 它仅用于开发目的。 I just want something I can simply setup on my own PC, Aspire XC 704G x64. 我只想要一些我可以在我自己的电脑上设置的东西,Aspire XC 704G x64。 Connect to my home network but also be able connect to it from anywhere online. 连接到我的家庭网络,但也可以从任何地方在线连接到它。

I can setup nodejs on linux with no problems as I already have one locally. 我可以在linux上设置nodejs没有问题,因为我已经有一个本地。 But I am having issues trying to set it up so I can access it online. 但我在尝试设置它时遇到问题,因此我可以在线访问它。 Is there any references books/tutorials whatever I can find step by step instructions. 有什么参考书/教程,我可以找到一步一步的说明。 Or does anyone know where I can buy a computer/server already configured or some kind preloaded installation software I can get! 或者有谁知道我可以在哪里购买已经配置的计算机/服务器或者我可以获得的某种预装的安装软件!

Thank all! 谢谢大家!

I would suggest using Docker on your machine. 我建议在你的机器上使用Docker。 Its very lightweight and will do exactly what you described. 它非常轻巧,完全符合您的描述。 No need for Virtual Machines, just start the docker container when you want to use the nodeJS environment, and stop it when you are done... takes a second to start and stop. 不需要虚拟机,只需在想要使用nodeJS环境时启动docker容器,并在完成后停止它......需要一秒钟来启动和停止。

Official Docker NodeJS image 官方Docker NodeJS图像

You will enjoy Docker. 您将享受Docker。

What you need is port forwarding. 你需要的是端口转发。 See https://portforward.com . 请参阅https://portforward.com

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM