centos6.5环境 yum 安装nginx后(版本nginx1.10.1)

启动报错:

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

解决办法:

vim /etc/nginx/conf.d/default.conf

1listen       80 default_server;
2listen       [::]:80 default_server;

改为:

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

启动nginx就行了。。