[英]How i deploy node.js server on public domain?
I've tried a lot of ways how to upload node.js server on the public domain but I've never found anything.我尝试了很多方法如何在公共域上上传 node.js 服务器,但我从来没有找到任何东西。 can you help me?你能帮助我吗? (Sorry for my english. I can not speak English very well.) (对不起我的英语。我英语说得不好。)
i need more info like我需要更多信息,比如
Yes I Use VPS是的,我使用 VPS
first check your firewall setting and allow port related to your nodejs port, i example your app use port 8000, let tell to you firewall to allow port 8000 access tcp/udp首先检查您的防火墙设置并允许与您的 nodejs 端口相关的端口,例如您的应用程序使用端口 8000,让告诉您防火墙允许端口 8000 访问 tcp/udp
if you use UFW as firewall manager you can open port by ufw allow 8000如果您使用 UFW 作为防火墙管理器,您可以通过ufw allow 8000打开端口
No i Use Local Server不,我使用本地服务器
okay you can activated NAT from your modem OR you can download ngrok !好的,你可以从你的调制解调器激活 NAT 或者你可以下载ngrok !
./ngrok http 8000 ./ngrok http 8000
to open your port打开你的端口
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.