CentOS 6 Nginx启动失败的解决方法 [emerg] socket() [::]:80 failed
[root@*********** ~]# service nginx start Starting nginx: nginx: [emerg] socket() [::]:80 failed (97: Address family not supported by protocol) [FAILED]
解决办法
vi /etc/nginx/conf.d/default.conf
找到
listen 80 default_server; listen [::]:80 default_server;
修改为
listen 80; #listen [::]:80 default_server;
最后重启一下Nginx服务
[root@iZ238uepsriZ ~]# service nginx start Starting nginx: [ OK ]