varnish的安装使用
作者:admin 日期:2022-08-28
1. 安装依赖包
yum install autoconf.noarch automake.noarch jemalloc-devel.x86_64 libedit-devel.x86_64 libtool.x86_64 ncurses-devel.x86_64 pcre-devel.x86_64 pkgconfig.x86_64 python-docutils.noarch python-sphinx.noarch graphviz.x86_64 -y
2. 上传安装包并解压
[root@xinsz08-62 桌面]# ls
nethogs-0.8.5-1.el7.x86_64.rpm
varnish-6.2.3.tgz
使用file查看文件
[root@xinsz08-62 桌面]# file varnish-6.2.3.tgz
varnish-6.2.3.tgz: gzip compressed data, from Unix, last modified: Fri Jan 31 20:18:02 2020, max compression
[root@xinsz08-62 ~]# file varnish-6.2.3.tgz
varnish-6.2.3.tgz: gzip compressed data, from Unix, last modified: Fri Jan 31 20:18:02 2020, max compression
[root@xinsz08-62 ~]# gunzip varnish-6.2.3.tgz
[root@xinsz08-62 ~]# ls
varnish-6.2.3.tar
解压:
[root@xinsz08-62 ~]# tar xf varnish-6.2.3.tar
[root@xinsz08-62 ~]# ls
varnish-6.2.3
varnish-6.2.3.tar
3. 进入目录并编译安装
[root@xinsz08-62 ~]# cd varnish-6.2.3/
[root@xinsz08-62 varnish-6.2.3]# ls
aclocal.m4 configure lib README.Packaging
autogen.sh configure.ac LICENSE README.rst
bin doc m4 varnishapi.pc.in
build-aux etc Makefile.am varnishapi-uninstalled.pc.in
ChangeLog include Makefile.in varnish-legacy.m4
config.h.in INSTALL man varnish.m4
[root@xinsz08-62 varnish-6.2.3]#
编译安装
[root@xinsz08-62 varnish-6.2.3]# ./autogen.sh
[root@xinsz08-62 varnish-6.2.3]# ./configure && make && make install
[root@xinsz08-62 varnish-6.2.3]# ldconfig
广告位