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

 环境:Centos6.5

行为:安装nginx

问题:  

nginx: [emerg] socket() [::]:80 failed (97: Address family not supported by protocol)
nginx: configuration file /etc/nginx/nginx.conf test failed

解决:

   vim /etc/nginx/conf.d/default.conf
将:
    listen       80 default_server;
    listen       [::]:80 default_server;
改为:
    listen       80;
    #listen     [::]:80 default_server;

启动nginx就行了。。

来自:http://www.liguosong.com/2016/11/14/nginx-emerg-socket-80-failed-97-address-family-not-supported-by-protocol/

原文地址:https://www.cnblogs.com/jxkshu/p/6290484.html