【环境信息】
cat /etc/openEuler-latest
openeulerversion=openEuler-22.03-LTS
compiletime=2022-02-15-17-30-36
gccversion=10.3.1-20210914.5.oe1
kernelversion=5.10.0-54.0.0.27.oe1
openjdkversion=1.8.0.312.b07-11.oe1
【问题复现步骤】
具体操作步骤
dnf install -y varnish
systemctl start varnish.service
systemctl reload varnish.service
出现概率(是否必现,概率性错误):必现
【预期结果】
服务reload成功
【实际结果】
服务reload失败
Hi wenjunryou, welcome to the openEuler Community.
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here.
If you have any questions, please contact the SIG: System-tool, and any of the maintainers: @zhenyu , @Charlie_Li , @朱春意 , @BigSkySea , @薄皮小笼包
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
问题原因:varnish.service reload失败是因为执行reload命令时缺少vcl配置文件参数,而start varnish.service时有指定vcl配置文件
修复方法:在varnish.service文件中reload命令后面跟/etc/varnish/default.vcl
【验收环境】
cat /etc/openEuler-latest
openeulerversion=openEuler-22.03-LTS
compiletime=2022-02-25-07-53-11
gccversion=10.3.1-20220223.7.oe1
kernelversion=5.10.0-59.0.0.32.oe1
openjdkversion=1.8.0.312.b07-11.oe1
【验收结果】
服务reload成功,问题验收通过
登录 后才可以发表评论