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

centos6.5環境 yum 安裝nginx後(ps:新版本的nginx1.10.6)nginx

啓動報錯:vim

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

解決辦法:socket

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

server

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

改成:進程

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

從新啓動nginx便可 試過kill nginx 進程,修改關閉ipv6都無論用ip

相關文章
相關標籤/搜索