原创文章,转载请注明: 转载自勤奋的小青蛙
本文链接地址: 【已解决】nginx: [emerg] socket() [::]:80 failed (97: Address family not supported by protocol)
本文链接地址: 【已解决】nginx: [emerg] socket() [::]:80 failed (97: Address family not supported by protocol)
centos6.5环境
修改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即可,网上说的那种kill掉nginx进程和ipv6 on的方法不适用
原创文章,转载请注明: 转载自勤奋的小青蛙
本文链接地址: 【已解决】nginx: [emerg] socket() [::]:80 failed (97: Address family not supported by protocol)
本文链接地址: 【已解决】nginx: [emerg] socket() [::]:80 failed (97: Address family not supported by protocol)
文章的脚注信息由WordPress的wp-posturl插件自动生成
微信扫一扫,打赏作者吧~

![[已解决]nc命令报错 close: Bad file descriptor](http://www.jyguagua.com/wp-content/themes/begin/timthumb.php?src=http://www.jyguagua.com/wp-content/uploads/2022/03/Snipaste_2022-03-18_20-16-48.png&w=280&h=210&zc=1)
![[已解决]SecureCRT/SSH 连接Linux缓慢](http://www.jyguagua.com/wp-content/themes/begin/timthumb.php?src=http://www.jyguagua.com/wp-content/uploads/2020/07/ssh_slow.jpg&w=280&h=210&zc=1)