In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Link: https://pan.baidu.com/s/1HfbxzSQpYCyuwL2audiU6A
Extraction code: znwj
Software connection
First prepare the environment: upload the software package and dependency package: libedit-devel-3.0-12.20121213cvs.el7.x86_64.rpmpython-docutils-0.11-0.2.20130715svn7687.el7.noarch.rpmvarnish-5.2.1.tgzVarnish server ip 192.168.80.102web server ip 192.168.80.103
Installation Services:
Systemctl stop firewalld
Setenforce 0
Mount / dev/cdrom / mnt
Yum install lrz*-y / / install download tool
(you can drag the installation package from the real machine to install the last software)
Yum install-y gcc gcc-c++ make / / install the compiler and environment
Install the dependency package and the required plug-ins:
Yum install-y\
Libtool\
Ncourses-devel\
Pcre-devel\
Libedit-devel\
Libxslt\
Groff\
Pkgconfig\
Ncurses-devel\
Python-*
.
Rpm-ivh libedit-devel-3.0-12.20121213cvs.el7.x86_64.rpm
Rpm-ivh python-docutils-0.11-0.2.20130715svn7687.el7.noarch.rpm
Tar xf varnish-5.2.1.tgz-C / opt
Cd / opt/varnish-5.2.1/ enter the decompressed folder to define the required modules
Sh autogen.sh / / check the system environment
. / configure\
-- prefix=/usr/local/varnish\
-- enable-debugging-symbols\
-- enable-developer-warnings
.
Make & & make install
Cd / usr/local/varnish/
Ln-s / usr/local/varnish/sbin/varnishd / usr/sbin/
Ln-s / usr/local/varnish/bin/* / usr/local/bin/
Cp / usr/local/varnish/share/doc/varnish/example.vcl / usr/local/varnish/default.vcl
/ / the configuration file template is copied and used.
Modify the configuration file
Vi default.vcl
.host = "192.168.80.103"; .port = "80"
Grep-v "#" default.vcl | grep-v "^ $" / / filter blank lines and comments
.
Start the service:
Varnishd-f / usr/local/varnish/default.vcl-a 0.0.0.0 purl 80
/ / # specify the listening ip and port launch varnish
Netstat-anpt | grep varnishd
At this point, the basic configuration of the Varnish server is complete.
Build a web server on a 80.103 virtual machine:
Systemctl stop firewalld
Setenforce 0
Yum install-y httpd
Vi / etc/httpd/conf/httpd.conf
# remove comment symbols
Systemctl start httpd / / start the service
Cd / var/www/html/
Server 0
Test, enter http://192.168.80.102 (the ip address of the varnish server) in the windows browser
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.