阿里云ECS在CentOS 6.8中使用Nginx提示:nginx: [emerg] socket() [::]:80 failed (97: Address family not supported by protocol)的解决方法

vim /etc/nginx/conf.d/default.conf
#找到并替换为以下:
listen 80;
#listen [::]:80 default_server;

最后直接在命令行下执行nginx即可启动成功。

/etc/init.d/nginx start

访问你的网站域名就可以访问网站了

原文地址:https://www.cnblogs.com/love-vce/p/12751610.html