linux – 在AWS AMI实例上创建Sails.js应用程序

所以我按照方向 here在一台全新的linux机器上创建了一个示例应用程序.

没有Apache,没有任何东西,试图使用Node,express等来处理传入的http请求.

帆说:

info: Server lifted in `/home/ec2-user/simKeynes`
info: To see your app,visit http://localhost:1337
info: To shut down Sails,press <CTRL> + C at any time.

debug: --------------------------------------------------------
debug: :: Fri Aug 16 2013 17:22:27 GMT+0000 (UTC)
debug: 
debug: Environment      : development
debug: Port             : 1337

但是当我转到相关的IP地址http://54.214.44.52:1337/时我什么都没看到.

检查Chrome的开发工具我看不到任何响应,浏览器显示:

Oops! Google Chrome could not connect to 54.214.44.52:1337

这绝对不是hello world页面.

我运行了Node.js 0.10,之前安装了express,sails,mongo,mongoose,ruby,就是这样.

我哪里做错了?

解决方法

打开AWS安全组中的端口以及虚拟机的防火墙(如果适用).

相关文章

文章浏览阅读1.8k次,点赞63次,收藏54次。Linux下的目录权限...
文章浏览阅读1.6k次,点赞44次,收藏38次。关于Qt的安装、Wi...
本文介绍了使用shell脚本编写一个 Hello
文章浏览阅读1.5k次,点赞37次,收藏43次。【Linux】初识Lin...
文章浏览阅读3k次,点赞34次,收藏156次。Linux超详细笔记,...
文章浏览阅读6.8k次,点赞109次,收藏114次。【Linux】 Open...