如何在浏览器中使用固定 IP 查看我的 Express 应用程序

How to view my Express app with fixed IP in browser

我只是在 AWS Lightsail 中用 express(Apache 服务器中的基本 express 生成器)创建了一个 NODE APP,我有一个固定的 IP http://44.197.139.141/, the app is installed in /mailing/ with default template from express, so the url is http://44.197.139.141/mailing, if you check url you get the files. I can't figure it out how to see my app, http://44.197.139.141/mailing:3000 不工作。 bitnami 文档说:

注意:出于安全原因,可能会阻止对端口 3000 上的服务器的访问。在这种情况下,您必须先在本地系统和服务器之间创建 SSH 隧道,然后才能访问该应用程序。

但我做不到。在此先感谢您的帮助。

您需要在 Lightsail Instance Firewall 中打开端口 3000