我有一個EC2實例想運行它的Django應用程序。這個EC2實例在端口80上已經有一個Apache服務器。現在我想在端口9090上託管我的Django項目。該實例的靜態IP爲200.200.200.200。EC2主機與IP地址的Django不能分配 - 錯誤
[email protected]:~/flanders$ python manage.py runserver 200.200.200.200:9090 Validating models...
0 errors found Django version 1.3.1, using settings 'flanders.settings' Development server is running at http://200.200.200.200:9090/ Quit the server with CONTROL-C. Error: That IP address can't be assigned-to. [email protected]:~/flanders$
它告訴我Error: That IP address can't be assigned-to
,所以我改變
[email protected]:~/flanders$ python manage.py runserver 127.0.0.1:9090 Validating models...
0 errors found Django version 1.3.1, using settings 'flanders.settings' Development server is running at http://127.0.0.1:9090/ Quit the server with CONTROL-C.
應用程序啓動的時候沒有問題,但是當我試圖訪問它http://200.200.200.200:9090/flandersapp/tags
,我不工作。順便說一句,我在我的安全設置中允許端口9090。
使用彈性IP – Chipmunk 2013-03-08 11:32:24