在ubuntu 16.04中安装varnish

时间:2017-11-14 18:14:56

标签: azure ubuntu varnish varnish-4 varnish-3

尝试了两种不同的方法在ubuntu 16.04上用azure设置清漆,但不确定安装方法是否正确。

与不同的网站一起使用似乎都是同一组命令。

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

以上安装是否正确,因为它提供已发送无效

方法2

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.

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

2 个答案:

答案 0 :(得分:2)

  

以上安装是否正确,因为它会发送无效。

这是关于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请参阅此问题。

答案 1 :(得分:-1)