Node服务器项目,浏览器无法连接,无法连接端口

发布于 2025-01-14 04:55:06 字数 1228 浏览 3 评论 0原文

有一个实时聊天的节点项目,在本地运行良好,但在服务器(centOS7)中无法运行,防火墙打开了。

节点@16,14,0

这里是安装的项目模块,并表达listen(3000,'0.0.0.0')

├── [电子邮件受保护] ├── [电子邮件受保护] ├── [电子邮件受保护] ├── [电子邮件受保护] ├── [电子邮件受保护] └── [电子邮件受保护]

当我询问“telnet”时本地3000端口无法连接server.telnet XX.XX.XX.XX 3000;当我在服务器上netstat -ntpl时,它显示3000端口正在激活。

浏览器无法获取资源,控制台:找不到给定 URL 的资源

crbug/1173575,已弃用非 JS 模块文件。

There is a node project about realtime chat, it runs fine locally, but can't run in the server(centOS7),firewall is opened。

node@16,14,0

Here is the project modules installed,and express listen (3000,'0.0.0.0')

├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected]

And when I ask a 'telnet' the 3000 PORT at local, it can't connect the server.telnet XX.XX.XX.XX 3000;when I netstat -ntpl at the server,it shows the 3000 port is activing.

browser can't get resources, console:No resource with given URL found.

crbug/1173575, non-JS module files deprecated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文