nginx 啓動異常 centos6

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

yum install nginx 安裝以後 運行 nginx 提示上面的錯誤vim

操做socket

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

code

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

修改爲server

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

便可im

相關文章
相關標籤/搜索