由于文件存储参数而导致缓存未启动

时间:2017-07-20 16:27:54

标签: varnish varnish-vcl varnish-4

Hey Guys我的centos 7盒子上安装了清漆4.0我的params文件看起来像:

RELOAD_VCL=1

VARNISH_VCL_CONF=/etc/varnish/default.vcl

VARNISH_LISTEN_PORT=80

VARNISH_ADMIN_LISTEN_ADDRESS=127.0.0.1
VARNISH_ADMIN_LISTEN_PORT=6082

VARNISH_SECRET_FILE=/etc/varnish/secret

VARNISH_STORAGE_FILE=/var/lib/varnish/varnish_storage.bin

VARNISH_STORAGE_SIZE=5G

VARNISH_STORAGE="file,${VARNISH_STORAGE_FILE},${VARNISH_STORAGE_SIZE}"

VARNISH_TTL=120

VARNISH_USER=varnish
VARNISH_GROUP=varnish

当我启动清漆时,我收到以下错误:

Unit varnish.service has begun starting up.
varnishd[14888]: Error: (-sfile) "${VARNISH_STORAGE_FILE}" does not exist and could not be created
systemd[1]: varnish.service: control process exited, code=exited status=2
systemd[1]: Failed to start Varnish Cache, a high-performance HTTP accelerator.

文件的所有者是清漆,我已经没有想法如何让这个工作。

0 个答案:

没有答案