Amazon ec2 使用弹性ip访问amazon ec2上的wt

Amazon ec2 使用弹性ip访问amazon ec2上的wt,amazon-ec2,wt,Amazon Ec2,Wt,我在运行ubuntu的ec2微实例上编译了最新的wt 当我吃午饭时,我举了一个例子: 1:23:15.~/progs/wt-3.2.3-rc1/examples/widgetgallery >../../build/examples/widgetgallery/widgetgallery.wt --docroot . --http-address localhost --http-port 8080 [2012-Oct-25 01:23:16.898953] 969 - [info] "c

我在运行ubuntu的ec2微实例上编译了最新的wt 当我吃午饭时,我举了一个例子:

1:23:15.~/progs/wt-3.2.3-rc1/examples/widgetgallery
>../../build/examples/widgetgallery/widgetgallery.wt --docroot . --http-address localhost --http-port 8080
[2012-Oct-25 01:23:16.898953] 969 - [info] "config: reading Wt config file: /etc/wt/wt_config.xml (location = '../../build/examples/widgetgallery/widgetgallery.wt')"
[2012-Oct-25 01:23:16.901653] 969 - [info] "WServer/wthttp: initializing built-in wthttpd"
[2012-Oct-25 01:23:16.902948] 969 - [info] "wthttp: started server: http://localhost:8080"
当我放入
http://54.243.50.12:8080/
http://54.243.50.12/
进入chrome的地址栏。它一直在加载,但从未找到它

弹性IP的关联有效。我可以用油灰连接到54.243.50.12

如果在启动wt时尝试指定弹性IP,wt服务器不会启动:

1:31:45.~/progs/wt-3.2.3-rc1/examples/widgetgallery
>../../build/examples/widgetgallery/widgetgallery.wt --docroot . --http-address 54.243.50.12 --http-port 8080
[2012-Oct-25 01:31:53.696951] 1056 - [info] "config: reading Wt config file: /etc/wt/wt_config.xml (location = '../../build/examples/widgetgallery/widgetgallery.wt')"
[2012-Oct-25 01:31:53.699035] 1056 - [info] "WServer/wthttp: initializing built-in wthttpd"
[2012-Oct-25 01:31:53.699968] 1056 - [error] "wthttp: Error occurred when binding to 54.243.50.12:8080
bind: Cannot assign requested address"
[2012-Oct-25 01:31:53.700614] 1056 - [info] "WServer/wthttp: fatal: Error (asio): bind: Cannot assign requested address"
1:31:53.~/progs/wt-3.2.3-rc1/examples/widgetgallery
>
没有弹性IP,情况也是如此

8080端口已打开:

>netstat -an | grep "LISTEN "
tcp        0      0 0.0.0.0:8080            0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN
tcp        0      0 127.0.0.1:5432          0.0.0.0:*               LISTEN
tcp6       0      0 :::22                   :::*                    LISTEN

我做了所有这些,但都没有帮助。

我需要在“安全组>入站”中打开一个端口。

这个问题在serverfault上关闭,因为太窄了。django也有一个类似的问题,wt是django的等价物。这与结束gentoo问题相同,因为它比MS windows更窄。没有办法在那里留下评论,但我想指出这一点,所以我把它留在这里。