Nginx Error: socket() [::]:80 failed (97: Address family not supported by protocol)
Server:Ubuntu 16.04.6
Nginx启动报错:
socket() [::]:80 failed (97: Address family not supported by protocol)
解决:
1、查看/etc/nginx/nginx.conf
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
2、查看include目录下的配置文件,找到default配置文件,修改如下:
修改前:
listen 80 default_server;
listen [::]:80 default_server;
修改后:
#listen 80 default_server;
#listen [::]:80 default_server;
listen 80;
Nginx Error: socket() [::]:80 failed (97: Address family not supported by protocol)相关推荐
- nginx: [emerg] socket() [::]:80 failed (97: Address family not supported by protocol)
今天测试Docker下配置一个nginx模板的镜像,装好nginx后,使用nginx -t进行检查,报错如下: 1 2 3 4 [root@a381c4c04132 yum.repos.d]# ngi ...
- 阿里云ECS在CentOS 6.9中使用Nginx提示:nginx: [emerg] socket() [::]:80 failed (97: Address family not supported
转载自: https://www.cnblogs.com/EasonJim/p/8056944.html 说明: 1.[::]:80这个是IPv6的地址. 2.阿里云截至到今天还不支持IPv6. 解决 ...
- 阿里云机器上执行 locusts 命令出现 OSError: [Errno 97] Address family not supported by protocol...
阿里云ECS 系统为 CentOS 6.8 64位 使用 yum install nginx 安装完成后,执行 nginx 启动服务,提示: nginx: [emerg] socket() [::]: ...
- error: <class ‘OSError‘>, [Errno 97] Address family not supported by protocol
问题描述 使用 supervisor 托管进程,使用 supervisorctl 时报错: [~]$ supervisorctl status error: <class 'OSError'&g ...
- 解决nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
2019独角兽企业重金招聘Python工程师标准>>> 今天在ubuntu10.04上面安装nginx,安装完成之后尝试启动nginx,使用命令: sudo /etc/init.d/ ...
- 解决nginx emerg bind to 80 failed 98 Address alrea
首选是安装nginx,在./configure出错的情况下,查看错误的报告,如果是缺少一些必要的库,安装这些库,可能的有ssl pcre(这个库我是使用源码安装的,在线安装没有成功,提示看不到这个库) ...
- c++ connect函数Address family not supported by protocol
问题: 在c++中执行网络的connect函数,出现报错 Address family not supported by protocol 函数原型: int connect(SOCKET s, co ...
- Android异常总结---1.Android java.net.SocketException: Address family not supported by protocol
1.Android java.net.SocketException: Address family not supported by protocol 出错提示 这个异常是因为 package ...
- Nginx [emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
使用命令关闭占用80端口的程序 sudo fuser -k 80/tcp
最新文章
- 关于Shiro框架权限标识符中*使用的总结
- wpf中内容包含在border中_WPF Border各种属性介绍
- hdu 3081(并查集+最大流)
- php连接数据库语言,PHP语言连接MYSQL数据库实例代码
- 3.Redis与python交互
- 又一个被JavaScript攻占的领域:物联网
- Windows使用自定义消息实现进程之间通信
- Linux 安装DenyHost防止ssh被暴力破解
- python中特殊符号怎么输入_python中怎么输入引号
- HTTP协议和HttpClient的入门
- Zookeeper学习笔记——1 单机版本环境搭建
- 安卓模拟器按键_逍遥安卓模拟器PC版-逍遥安卓模拟器下载v7.2.8.0
- 交换机和路由器技术-24-OSPF单区域配置
- 必看,Mac苹果电脑重装系统教程
- linux分区拓展容量,Linux系统分区容量扩充的方法
- 拍摄须知ISO、快门、光圈、曝光概念
- 面试问题——英语38 教育孩子 管理时间 看电视
- 我的世界刷猪人塔java版_我的世界猪人塔怎么做 5款猪人塔详解教程
- UDS 0x22服务 DID增加流程
- 6月份鸿蒙升级名单,华为鸿蒙系统6月升级名单机型有哪些