Failed to start devlopment server — BindError: Unable to find a consistent port localhost

前端 未结 7 2225
逝去的感伤
逝去的感伤 2020-12-03 23:13

Google-app-engine development server runs great yesterday, but when I try to start it today. It only shout out this Error.

I tried use lsof -i:8080 / <

7条回答
  •  孤街浪徒
    2020-12-03 23:56

    Similar to what was posted, I had this issue and fixed it by altering the hosts file. The issue was with IPv6 addresses redirecting to localhost:

    In my hosts file I had

    127.0.0.1    localhost
    ::1          localhost 
    fe80::1%lo0  localhost
    

    And I commented out the IPv6 addresses to give

    127.0.0.1     localhost
    #::1          localhost 
    #fe80::1%lo0  localhost
    

    I'm not sure this is a viable permanent solution as I imagine it's important to have the IPv6 numerical addresses for localhost to be in the hosts file but it works for now until a proper fix is released.

提交回复
热议问题