Rate This Document
Findability
Accuracy
Completeness
Readability

Installing Varnish by Using the Yum Source Obtained from a Mirror Site

Software Version

Whether to Support CentOS 7.6

Whether to Support CentOS 8.1

Whether to Support openEuler 20.03 (LTS-SP1)

Varnish 6.2.0

Yes

No

No

Varnish 6.5.1

No

No

No

The binary packages available at the Kunpeng mirror site are compiled and packaged based on the open source code, and do not involve vulnerability or bug fixes.

When using open source software, comply with the applicable license.

  1. Check that the Internet connection is normal.
    1
    curl www.baidu.com
    
  2. Configure the network source.
    1. Go to the /etc/yum.repos.d directory.
      1
      cd /etc/yum.repos.d
      
    2. Create an rpm.repo file.
      1. Create an rpm.repo file.
        1
        vi rpm.repo
        
      2. Add the following information to the rpm.repo file:
        [rpm]
        name=rpm
        baseurl=https://mirrors.huaweicloud.com/kunpeng/yum/el/7/aarch64/
        gpgcheck=0
        enabled=1

        The path specified by baseurl is the address of the mirror site.

      3. Save and exit the rpm.repo file.
  3. Make the network source take effect.
    1
    yum clean all
    
    1
    yum makecache
    
    1
    yum list
    
  4. Install Varnish using the Yum source.
    1
    yum install varnish-6.2.0-1.el7.aarch64
    
  5. Check the installed Varnish in the /usr/local/varnish.
    1
    ls /usr/local/vanish/