当我尝试在本地部署我的应用时,我无法让它运行。这就是它告诉我的:
2014-10-24 13:16:08 Running command: "['C:\\Python27\\python.exe', 'C:\\Program Files (x86)\\Google\\google_appengine\\dev_appserver.py', '--skip_sdk_update_check=yes', '--port=3306', '--admin_port=8000', 'D:\\Documents\\Clever-CV Project\\wp39 - Copy']"
INFO 2014-10-24 13:16:15,315 devappserver2.py:733] Skipping SDK update check.
WARNING 2014-10-24 13:16:15,345 api_server.py:383] Could not initialize images API; you are likely missing the Python "PIL" module.
INFO 2014-10-24 13:16:15,368 api_server.py:171] Starting API server at: http://localhost:49717
INFO 2014-10-24 13:16:15,381 api_server.py:583] Applying all pending transactions and saving the datastore
INFO 2014-10-24 13:16:15,381 api_server.py:586] Saving search indexes
Traceback (most recent call last):
File "C:\Program Files (x86)\Google\google_appengine\dev_appserver.py", line 82, in <module>
_run_file(__file__, globals())
<--ommitted-->>
raise BindError('Unable to bind %s:%s' % self.bind_addr)
google.appengine.tools.devappserver2.wsgi_server.BindError: Unable to bind localhost:3306
2014-10-24 13:16:15 (Process exited with code 1)
而且我是一个菜鸟 - 所以我很有可能做了一些愚蠢的事情,但是我在我的智慧结束时找到了我能在网上尝试的一切。
答案 0 :(得分:0)
在本地运行您的应用程序的问题在于这一部分:'--port=3306'
这是mysql的默认端口,您说mysql已经在运行,这意味着该端口已被占用并且您的应用无法使用。而不是3306
尝试默认的8080
端口并将其增加一个(即8081
,8082
等),以防您需要一次运行多个应用程序。