gpt4 book ai didi

apache - Docker 消息:由于服务器/代理的响应不正确,自动禁用 Acquire::http::Pipeline-Depth

转载 作者:行者123 更新时间:2023-12-01 13:30:14 30 4
gpt4 key购买 nike

将 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 协议(protocol)的一个特性。来自 RFC 7230 :

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


可以通过设置 Acquire::http::Pipeline-Depth 在 apt 中激活此功能。来自 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 服务器 .

关于apache - Docker 消息:由于服务器/代理的响应不正确,自动禁用 Acquire::http::Pipeline-Depth,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46303572/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com