linux – 在AWS AMI实例上创建Sails.js应用程序
发布时间:2020-12-14 02:48:31 所属栏目:Linux 来源:网络整理
导读:所以我按照方向 here在一台全新的linux机器上创建了一个示例应用程序. 没有Apache,没有任何东西,试图使用Node,express等来处理传入的http请求. 帆说: info: Server lifted in `/home/ec2-user/simKeynes`info: To see your app,visit http://localhost:1337
所以我按照方向
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安全组中的端口以及虚拟机的防火墙(如果适用).
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |