CentOS 启动 Nginx 报错 97: Address family not supported by protocol 的解决办法

xiaoxiao2021-02-28  51

Starting nginx: nginx: [emerg] socket() [::]:80 failed (97: Address family not supported by protocol)


解决办法:

vim /etc/nginx/conf.d/default.conf listen 80 default_server; listen [::]:80 default_server;

修改为:

listen 80; #listen [::]:80 default_server;

重启nginx

sudo service nginx restart

参考资料:

1、nginx: [emerg] socket() [::]:80 failed (97: Address family not supported by protocol) https://blog.csdn.net/reblue520/article/details/52799500

转载请注明原文地址: https://www.6miu.com/read-2631683.html

最新回复(0)