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

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

listen       80 default_server;
listen       [::]:80 default_server;

改为:

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

启动nginx就行了。。

发表评论

电子邮件地址不会被公开。

您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>