In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.