1
我源編譯與Ubuntu運行 當我吃午飯的一個例子在EC2上的微實例最新的重量:接入重量與彈性IP
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。
如果我嘗試當我開始重量指定彈性IP,在重量服務器無法啓動:
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
我做過的一切是在http://redmine.webtoolkit.eu/boards/2/topics/4484#message-4516,但它並沒有幫助。
此問題在serverfault上關閉太窄。有一個類似的問題django http://serverfault.com/questions/430848/amazon-ec2-not-able-to-open-web-application-even-if-port-it-opened,wt是一個相當於Django的。它與關閉gentoo問題相同,因爲它比MS windows更窄。沒有辦法留下評論,但我想指出,所以我把它留在這裏。 –