CentOS 启动 Nginx 报错 97: Address family not supported by protocol 的解决办法
程序员文章站
2022-05-26 15:13:57
...
Starting 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 [::]:80 default_server;
修改为:
listen 80;
#listen [::]:80 default_server;
重启nginx
sudo service nginx restart
参考资料:
1、nginx: [emerg] socket() [::]:80 failed (97: Address family not supported by protocol)
https://blog.csdn.net/reblue520/article/details/52799500
上一篇: 如何正确选择合适的电商系统软件
下一篇: vim 基础操作记录