gpt4 book ai didi

azure - 在 ubuntu 16.04 中安装 Varnish

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

尝试使用 2 种不同的方法在 azure 的 ubuntu 16.04 上设置 Varnish ,但不确定安装方法是否正确。

引用不同的网站似乎都是相同的命令集。

方法 1

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install varnish

.........
.........
Setting up libvarnishapi1 (4.1.1-1ubuntu0.2) ...
Setting up manpages-dev (4.04-2) ...
Setting up libjemalloc1 (3.6.0-9ubuntu1) ...
Setting up varnish (4.1.1-1ubuntu0.2) ...
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting
sent invalidate(group) request, exiting
sent invalidate(group) request, exiting
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting
Processing triggers for libc-bin (2.23-0ubuntu9) ...
Processing triggers for systemd (229-4ubuntu21) ...
Processing triggers for ureadahead (0.100.0-19) ...

上面的安装是否正确,因为它给出了 发送无效 .

方法二
sudo curl http://repo.varnish-cache.org/debian/GPG-key.txt | sudo apt-key add -
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 580 100 580 0 0 1172 0 --:--:-- --:--:-- --:--:-- 1171
gpg: no valid OpenPGP data found.


sudo echo "deb http://repo.varnish-cache.org/ubuntu/ precise varnish-3.0" | sudo tee -a /etc/apt/sources.list

sudo apt-get update

进行更新将导致以下错误。
W: The repository 'http://repo.varnish-cache.org/ubuntu precise Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://repo.varnish-cache.org/ubuntu/dists/precise/varnish-3.0/binary-amd64/Packages 410 repo [IP: 176.58.90.154 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.

不确定这两种方法都是正确的,因为两者都给出了一些错误。

最佳答案

Is the above installation is correct since it gives sent invalidate.



这是关于 Ubuntu 16.04 的已知问题。

当我们尝试将用户添加到 Ubuntu 16.04 ,我们将收到此错误消息,如下所示:
root@ubuntu:~# adduser test
Adding user `test' ...
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting
Adding new group `test' (1001) ...
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting
sent invalidate(group) request, exiting
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting
Adding new user `test' (1001) with group `test' ...
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting
Creating home directory `/home/test' ...
Copying files from `/etc/skel' ...
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Changing the user information for test
Enter the new value, or press ENTER for the default
Full Name []:
Room Number []:

据我所知,错误消息不会影响它。
jason@ubuntu:~$ su - test
Password:
test@ubuntu:~$

这里 link关于这个问题,请引用。

关于azure - 在 ubuntu 16.04 中安装 Varnish ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47292673/

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