In­stalling Var­nish

OpenSource For You - - HOW TO ADMIN -

Once the repos­i­to­ries are en­abled, we can in­stall Var­nish:

[[email protected]­ing­wire sridhar]# yum -y in­stall var­nish

On Ubuntu, you should run the fol­low­ing com­mand:

[[email protected]­ing­wire sridhar]# sudo apt-get in­stall var­nish

After a few seconds, Var­nish will be in­stalled. Let’s ver­ify the in­stal­la­tion be­fore we go fur­ther. In the ter­mi­nal, en­ter the fol­low­ing com­mand— the out­put should con­tain the lines that follow the in­put com­mand (we have re­pro­duced only a few lines for the sake of clar­ity). [[email protected]­ing­wire sridhar]## yum info var­nish In­stalled Pack­ages Name : var­nish Arch : i686 Ver­sion : 3.0.5 Re­lease : 1.el6 Size : 1.1 M Repo : in­stalled

That looks good; so we can be sure that Var­nish is in­stalled. Now, let’s con­fig­ure Var­nish to start up on boot. In case you have to restart your VPS, Var­nish will be started au­to­mat­i­cally.

[[email protected]­ing­wire sridhar]#chk­con­fig --level 345 var­nish on

Hav­ing done that, let’s now start Var­nish:

[[email protected]­ing­wire sridhar]#/etc/init.d/var­nish start

We have now in­stalled Var­nish and it’s up and run­ning. Let’s con­fig­ure it to cache the pages from our NGINX server.

Newspapers in English

Newspapers from India

© PressReader. All rights reserved.