无法在Centos 7上启动Varnish 3服务

时间:2015-01-23 18:39:59

标签: linux centos redhat varnish

因为Varnish网站上的Varnish 3软件包适用于RHEL 6,所以我在Centos 7上安装它时遇到了问题。

清漆安装 https://www.varnish-cache.org/installation/redhat Centos 7上的Varnish 3 bug https://bugs.centos.org/view.php?id=7563

http://repo.varnish-cache.org/redhat/varnish-3.0/el7/ 我将repo重新命名为Cento 7的Varnish 3,并成功安装了Varnish 3。但是,我有问题启动并重新启动服务。

[root@VR1gb ~]# service varnish restart
Restarting varnish (via systemctl):  


[root@VR1gb init.d]# systemctl restart varnishd.service
Failed to issue method call: Unit varnishd.service failed to load: No such file or directory.

[root @ VR1gb init.d] #rpm -ql varnish

/etc/logrotate.d/varnish
/etc/rc.d/init.d/varnish
/etc/rc.d/init.d/varnishlog
/etc/rc.d/init.d/varnishncsa
/etc/sysconfig/varnish
/etc/varnish
/etc/varnish/default.vcl
/usr/bin/varnish_reload_vcl
/usr/bin/varnishadm
/usr/bin/varnishhist
/usr/bin/varnishlog
/usr/bin/varnishncsa
/usr/bin/varnishreplay
/usr/bin/varnishsizes
/usr/bin/varnishstat
/usr/bin/varnishtest
/usr/bin/varnishtop
/usr/lib64/varnish
/usr/lib64/varnish/libvarnish.so
/usr/lib64/varnish/libvarnishcompat.so
/usr/lib64/varnish/libvcl.so
/usr/lib64/varnish/libvgz.so
/usr/lib64/varnish/vmods
/usr/lib64/varnish/vmods/libvmod_std.so
/usr/sbin/varnishd
/usr/share/doc/varnish-3.0.6
/usr/share/doc/varnish-3.0.6/ChangeLog
/usr/share/doc/varnish-3.0.6/LICENSE
/usr/share/doc/varnish-3.0.6/README
/usr/share/doc/varnish-3.0.6/README.redhat
/usr/share/doc/varnish-3.0.6/examples
/usr/share/doc/varnish-3.0.6/examples/default.vcl
/usr/share/doc/varnish-3.0.6/examples/zope-plone.vcl
/usr/share/man/man1/varnishadm.1.gz
/usr/share/man/man1/varnishd.1.gz
/usr/share/man/man1/varnishhist.1.gz
/usr/share/man/man1/varnishlog.1.gz
/usr/share/man/man1/varnishncsa.1.gz
/usr/share/man/man1/varnishreplay.1.gz
/usr/share/man/man1/varnishsizes.1.gz
/usr/share/man/man1/varnishstat.1.gz
/usr/share/man/man1/varnishtest.1.gz
/usr/share/man/man1/varnishtop.1.gz
/usr/share/man/man3/vmod_std.3.gz
/usr/share/man/man7/varnish-cli.7.gz
/usr/share/man/man7/varnish-counters.7.gz
/usr/share/man/man7/vcl.7.gz
/var/lib/varnish
/var/log/varnish

[root @ VR1gb run]#/ etc / init.d / varnish status

varnish.service - LSB: start and stop varnishd
   Loaded: loaded (/etc/rc.d/init.d/varnish)
   Active: activating (start) since Fri 2015-01-23 13:59:32 EST; 57s ago
  Process: 17843 ExecStart=/etc/rc.d/init.d/varnish start (code=exited, status=0/SUCCESS    )
   CGroup: /system.slice/varnish.service
           ├─13813 /usr/sbin/varnishd -P /var/run/varnish.pid -a :80 -f     /etc/varnish/default.vcl -T 127.0.0.1:6082 -t 120 -w 50,1000,120 -u varnish -    g varni...
           └─13814 /usr/sbin/varnishd -P /var/run/varnish.pid -a :80 -f     /etc/varnish/default.vcl -T 127.0.0.1:6082 -t 120 -w 50,1000,120 -u varnish -    g varni...

Jan 23 13:59:32 VR1gb systemd[1]: Stopping LSB: start and stop varnishd...
Jan 23 13:59:32 VR1gb systemd[1]: Starting LSB: start and stop varnishd...
Jan 23 13:59:32 VR1gb systemd[1]: PID file /var/run/varnishd.pid not readable (yet?)     after start.
[root@VR1gb run]# /etc/init.d/varnish restart

0 个答案:

没有答案