在 ubuntu 16.04 中安装清漆

installing varnish in ubuntu 16.04

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

在不同的网站上引用似乎都是同一组命令。

方法一

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) ...

上面的安装是否正确,因为它给出了 sent invalidate.

方法二

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.

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

您可以参考“How to install Varnish on Ubuntu Server 16.04”。

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关于这个问题,请参考。