In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
How to install and configure keepalived in centos7 system? I believe that most people have not yet learned this skill, in order to let you learn, to give you a summary of the following content, do not say much, let's move on.
1. Basic environment system version nginx version keepalived version ip function CentOS Linux release 7.5.1804 (Core) nginx/1.16.1keepalived-2.0.1810.1.1.31masterCentOS Linux release 7.5.1804 (Core) nginx/1.16.1keepalived-2.0.1810.1.1.32slave
VIP 10.1.1.111
II. Install nginx
Install nignx
Yum install nginx-y
Modify nginx configuration file
Master
Echo 'this is master 31' > / usr/share/nginx/html/index.html
Slave
Echo 'this is slave 32' > / usr/share/nginx/html/index.html
Start nginx
Systemctl start nginx
Test nginx startup
Curl localhostthis is master III. Install keepalived1, create a dependent environment yum-y install openssl-devel gcc gcc-c++mkdir / etc/keepalivedwget https://www.keepalived.org/software/keepalived-2.0.18.tar.gz2, install keepalivedtar-zxvf keepalived-2.0.18.tar.gzmv keepalived-2.0.18 / usr/local/keepalivedcd / usr/local/keepalived./configure & & make & & make install3, Create startup file cp-a / usr/local/etc/keepalived / etc/init.d/cp-a / usr/local/etc/sysconfig/keepalived / etc/sysconfig/cp-a / usr/local/sbin/keepalived / usr/sbin/4, create configuration file
Master
Cat > / etc/keepalived/keepalived.conf / etc/keepalived/keepalived.conf
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.