Unable to bind local host:8000 with Google App Engine

主宰稳场 提交于 2019-12-01 18:23:25

The app server starts two servers; one for your application, the other for the development console. It is that second server that is causing the problem here; it normally would be run on port 8000.

Change the ip address for the development console with the --admin_port switch:

dev_appserver.py --admin_port=9000

You may still want to change the port for the main application server too, of course.

Also see the command-line arguments documentation for dev_appserver.py.

It is possible some application is binding to your port in autostart event. It's highly probable to be the same service you are trying to run. In that case try killing the process

ps -ef | grep 'process_name'

Use kill -9 'pid' to end the process.

A computer restart did it, closing google app engine launcher, restarting the computer then launching again did the trick...

Being unable a port is usually a sign of one of two things:

  • You don't have permissions
  • Something is already running there.

You can try hitting the local port 8080 with your browser to see what is there, and kill it if it shouldn't be.

As for permissions - only look for this afterwards. Presuming you are in windows (you didn't specify this), then you should be able to bind this as a normal user.

As for the command line - have you tried replacing the "=" with a space - I've seen both forms in documentation for app-engine.

dev_appserver.py --port 9999 .

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!