在AWS AMI实例上创build一个Sails.js应用程序

所以我遵循这里的指示,并在全新的Linux机器上创build了一个示例应用程序。

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

Sails说:

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 

这绝对不是你好世界的页面。

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

我哪里做错了?

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