In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
-install the service package-
Yum install pcre-devel bzip2-devel gcc gcc-c++-ytar zxvf haproxy-1.5.19.tar.gz-C / optcd / opt/haproxy-1.5.19/make TARGET=linux26make install
-- modify configuration file-
Mkdir / etc/haproxycp / opt/haproxy-1.5.19/examples/haproxy.cfg / etc/haproxy/vim / etc/haproxy/haproxy.cfg
# chroot / usr/share/haproxy / / imprison the share directory
# redispatch / / resend repeatedly
-Delete all listen and add the following paragraph-
Listen webcluster 0.0.0.0 listen webcluster 80 / / allows any network to access the website option httpchk GET / index.html / / defines the default home page type balance roundrobin / / load balancing algorithm, polls server inst1 192.168.218.130 server inst1 2000 fall 3 / / defines the online node server inst2 192.168.218.131 listen webcluster 80 check inter 2000 fall 3
-create a startup connection and start the service--
Cp / opt/haproxy-1.5.19/examples/haproxy.init / etc/init.d/haproxychmod 755 / etc/init.d/haproxy chkconfig-- add haproxy / / Boot ln-s / usr/local/sbin/haproxy / usr/sbin/haproxysystemctl start haproxy.servicesystemctl stop firewalld.servicesetenforce 0
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.