Centos6.4使用yum安装nginx不能启动

启动nginx时报错:

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

解决办法:

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

listen    80   default_server;

listen      [::]:80default_server;

修改为:

listen80;

#listen      [::]:80 default_server;


重启nginx

sudo service nginx restart

你可能感兴趣的:(Centos6.4使用yum安装nginx不能启动)