加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

apache-Docker消息:由于来自服务器/代理的错误响应,自动禁用Acq

发布时间:2020-12-16 03:26:16 所属栏目:安全 来源:网络整理
导读:将apache2安装到Docker的Ubuntu 16.04映像中,我得到以下消息 W: http://archive.ubuntu.com/ubuntu/pool/main/g/gdbm/libgdbm3_1.8.3-13.1_amd64.deb: Automatically disabled Acquire::http::Pipeline-Depth due to incorrect response from server/proxy.

将apache2安装到Docker的Ubuntu 16.04映像中,我得到以下消息

W: http://archive.ubuntu.com/ubuntu/pool/main/g/gdbm/libgdbm3_1.8.3-13.1_amd64.deb: Automatically disabled Acquire::http::Pipeline-Depth due to incorrect response from server/proxy. (man 5 apt.conf).

那就是Dockerfile:

FROM ubuntu:16.04

#RUN apt-get update
#https://github.com/phusion/baseimage-docker/issues/319
RUN apt-get update && apt-get install -y --no-install-recommends apt-utils 
RUN apt-get install -y apache2

当我打开图像时,我看到了/ var / www / html文件夹,即安装了apache.

那是什么信息?是错误还是我可以认为apache已完全安装?

最佳答案
流水线是HTTP / 1.1协议的功能.从RFC 7230开始:

A client that supports persistent connections MAY “pipeline” its
requests (i.e.,send multiple requests without waiting for each
response). A server MAY process a sequence of pipelined requests in
parallel if they all have safe methods (Section 4.2.1 of [RFC7231]),
but it MUST send the corresponding responses in the same order that
the requests were received.

可以通过设置Acquire :: http :: Pipeline-Depth激活此功能.从man apt.conf开始:

The setting Acquire::http::Pipeline-Depth can be used to enable HTTP pipelining (RFC 2616 section 8.1.2.2) which can be beneficial e.g. on high-latency connections. It specifies how many requests are sent in a pipeline. APT tries to detect and workaround misbehaving webservers and proxies at runtime,but if you know that yours does not conform to the HTTP/1.1 specification pipelining can be disabled by setting the value to 0. It is enabled by default with the value 10.

您看到的消息表示您与apt信息库的连接不支持管道传输(可能是由于某种代理),并且apt自动禁用了此功能.安装可能会花费更多时间,但是您可以认为apache服务器已完全安装.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读