nginx error: (99: Cannot assign requested address)

前端 未结 8 1033
挽巷
挽巷 2020-12-24 11:52

I am running Ubuntu Hardy 8.04 and nginx 0.7.65, and when I try starting my nginx server:

$ sudo /etc/init.d/nginx start

I get the followin

8条回答
  •  别那么骄傲
    2020-12-24 12:36

    With Amazon EC2 and elastic IPs, the server doesn't actually know its IP as with most any other server. So in the apache virtual host files at least you put *:80 rather than your elastic ip :80

    Then it works properly. So theoretically, doing *:80 for nginx should work the same but when you do you get [emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use). Haven't found a solution yet. .

提交回复
热议问题