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
将
1 | listen 80 default_server; |
2 | listen [::]:80 default_server; |
改为:
1 | listen 80; |
2 | #listen [::]:80 default_server; |
启动nginx就行了。。