nginx erreur it didn't open
22,763
Solution 1
just i deleted this line
listen [::]:80 default_server ipv6only=on;
from
/etc/nginx/sites-available/default and it works :D
Solution 2
nginx: [emerg] socket() [::]:80 failed (97: Address family not supported by protocol)
From the error message this seems ipv6 is disabled on your server. Edit nginx default server configuration and changed it to listen on ipv4 only or enable ipv6.
listen 80 default_server;
# comment to disable ipv6
# listen [::]:80 default_server;
Related videos on Youtube
Author by
user14576
Updated on September 18, 2022Comments
-
user14576 over 1 year
please nginx in my server did start please follow me
root@s45-****:/home/arabico# nmap 45.**** PORT STATE SERVICE 22/tcp open ssh 5/tcp open smtp 80/tcp open http Nmap done: 1 IP address (1 host up) scanned in 0.06 seconds root@s45-****:/home/arabico# sudo service apache2 stop * Stopping web server apache2 * root@s45-****:/home/arabico# nmap 45.**** Starting Nmap 6.40 ( http://nmap.org ) at 2015-06-05 19:33 MST PORT STATE SERVICE 22/tcp open ssh 25/tcp open smtp Nmap done: 1 IP address (1 host up) scanned in 0.06 seconds root@s45-***:/home/arabico# sudo service nginx restart * Restarting nginx nginx [fail] root@s45-***:/home/arabico# nginx -t nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: [emerg] socket() [::]:80 failed (97: Address family not supported by protocol) nginx: configuration file /etc/nginx/nginx.conf test failed root@s45***:/home/arabico# sudo nginx nginx: [emerg] socket() [::]:80 failed (97: Address family not supported by protocol)
how to let it start please
-
marisusis almost 9 yearsWhat exactly are you asking?
-
user14576 almost 9 yearsit didn'y work how to let it start
-
-
Loredra L over 5 yearsI did the same and it also works. But can anyone explain why the default config did not work?