Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - upgradeinfo

Pages: [1]
1
for Centos 7
edit repository varnishcache_varnish5.repo

change the First baseurl=

from:
baseurl=https://packagecloud.io/varnishcache/varnish5/el/7/$basearch
to:
baseurl=https://packagecloud.io/varnishcache/varnish73/el/7/$basearch

and the Second  baseurl=

from:
baseurl=https://packagecloud.io/varnishcache/varnish5/el/7/SRPMS
to:
baseurl=https://packagecloud.io/varnishcache/varnish73/el/7/SRPMS


change the 2 gpgkey=
from:
gpgkey=https://packagecloud.io/varnishcache/varnish5/gpgkey
to:
gpgkey=https://packagecloud.io/varnishcache/varnish73/gpgkey

after save, Update cache for repository, and yum update

edit the file: /usr/lib/systemd/system/varnish.service
Code: [Select]
[Unit]
Description=Varnish Cache, a high-performance HTTP accelerator
After=network-online.target

[Service]
Type=forking
KillMode=process

# Maximum number of open files (for ulimit -n)
LimitNOFILE=131072

# Locked shared memory - should suffice to lock the shared memory log
# (varnishd -l argument)
# Default log size is 80MB vsl + 1M vsm + header -> 82MB
# unit is bytes
LimitMEMLOCK=85983232

# Enable this to avoid "fork failed" on reload.
TasksMax=infinity

# Maximum size of the corefile.
LimitCORE=infinity

ExecStart=/usr/sbin/varnishd -a :82 -f /etc/varnish/default.vcl -s malloc,256m
ExecReload=/usr/sbin/varnishreload

[Install]
WantedBy=multi-user.target

reboot the system



Pages: [1]