张宴博客:
http://zyan.cc/post/313/
1、创建vnish用户和组,以及Varnish缓存文件存放目录(/var/vcache):
/usr/sbin/groupadd vnish -g 48
/usr/sbin/useradd -u 48 -g vnish vnish
mkdir -p /var/vcache
chmod +w /var/vcache
chown -R vnish:vnish /var/vcache
2、创建Varnish日志目录(/var/logs/):
mkdir -p /var/logs
chmod +w /var/logs
chown -R vnish:vnish /var/logs
3、编译安装varnish:
安装出错,这是缺少了依赖包
解决方式:安装依赖包 yum -y install automake autoconf libtool ncurses-devel libxslt groff pcre-devel pkgconfig^C
make[3]: *** [varnishadm-varnishadm.o] Error 1 make[3]: Leaving directory `/root/lnmp/src/varnish-3.0.4/bin/varnishadm‘ make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/root/lnmp/src/varnish-3.0.4/bin‘ make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/root/lnmp/src/varnish-3.0.4‘ make: *** [all] Error 2
要注意通过git签出的版本会比一般情况需要更多依赖包,尤其是Python Docutils和Sphinx。 ① 所需要的依赖包(是的,上面那条命令已经包含了全部了) automake autoconf libtool ncurses-devel libxslt groff pcre-devel pkgconfig
时间: 2024-10-09 03:10:33