当前位置:网站首页>Keepalived monitors the process and automatically restarts the service process
Keepalived monitors the process and automatically restarts the service process
2022-06-25 07:23:00 【Huangyuewang】
One 、 Download keepalived1.2.2 edition
http://pan.baidu.com/s/1jI5c7EA
Two 、 Decompress first , Compress the contents of the package keepalived-1.2.2.tar.gz The package is uploaded to /home Under the catalogue , Execute in sequence as follows 4 Commands to Install compilation keepalived file
You need to load it first popt package , You can execute commands directly :yum install popt-devel -y
1、 tar -zxvf keepalived-1.2.2.tar.gz
2、 cd /home/keepalived-1.2.2
3、 ./configure --prefix=/etc/keepalived-1.2.2 // Install and compile to Under this directory
4、 make && make install
3、 ... and 、 Install to system , The default startup script contains the system path , So you need to copy some files to the system directory
1、 cp /etc/keepalived-1.2.2/etc/rc.d/init.d/keepalived /etc/init.d/
2、 cp /etc/keepalived-1.2.2/sbin/keepalived /usr/sbin/
3、cp /etc/keepalived-1.2.2/sbin/keepalived /etc/keepalived-1.2.2/bin/
4、 cp /etc/keepalived-1.2.2/etc/sysconfig/keepalived /etc/sysconfig/
5、 mkdir -p /etc/keepalived
6、 Upload keepalived1.2.2.rar Inside check_haproxy.sh and keepalived.conf To /etc/keepalived Catalog
Four 、 Start
keepalived start-up :
/etc/init.d/keepalived start
keepalived stop it :
/etc/init.d/keepalived stop
keepalived state :
/etc/init.d/keepalived status
If the startup error , Execute this command to view the exception information :systemctl status keepalived.service
Exceptions are as follows :Starting keepalived: keepalived: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such ...or directory
Default libssl.so.1.1(openssl Components ) Will be installed in /usr/local/lib64 below ; It needs to be placed to... Through a soft connection /usr/lib64 below :
ln -s /usr/local/lib64/libssl.so.1.1 /usr/lib64/libssl.so.1.1 ln -s /usr/local/lib64/libcrypto.so.1.1 /usr/lib64/libcrypto.so.1.1ln It's a soft link , Soft links represent moral and windows The shortcut to is very similar , Soft links are not connected to data blocks , It's just a symbol , Linked to a name of the real database ; The corresponding is hard link , Direct and block (node) Connected to a , Equivalent to an alias of a data block .
Restart and it will be normal , Other anomalies Baidu is looking for a solution
边栏推荐
- [Shangshui Shuo series] day 5
- 【一起上水硕系列】Day 4
- Blue Bridge Cup SCM module code (external interrupt) (code + comment)
- Using awk to process input from multiple files
- [Introduction aux uvm== > Episode 9] ~ modèle de registre, intégration du modèle de registre, méthode conventionnelle du modèle de registre, scénario d'application du modèle de registre
- Harmony美食菜单界面
- Pratique de gestion hiérarchique basée sur kubesphere
- The e-book "action guide for large organizations to further promote zero code application platform" was officially released!
- Finally, when you open source the applet ~
- 稳压二极管的原理,它有什么作用?
猜你喜欢

Finally, when you open source the applet ~

线程状态变化涉及哪些常用 API

Simple and complete steps of vivado project

高效探索|ES地理位置查询的一次应用实践

赚够钱回老家吗

Reading sensor data with GPIO analog SPI interface

Atomic alpha development board -- SD card and EMMC burning tool

Error reported during vivado simulation common 17-39

高数基础_函数的奇偶性

Make enough money to go back home
随机推荐
Qcom--lk phase I2C interface configuration scheme -i2c6
Learn the first routine of FPGA
正版photoshop2022购买体验经历分享
lotus v1.16.0-rc3 calibnet
Too beautiful promise because too young
48 张图 | 手摸手教你微服务的性能监控、压测和调优
Love Terminator
Display purchase Summary - Dell 2705qm BenQ pd2700u
Loopholes in the missed scanning system of Lvmeng and its repair scheme
Esp8266 & sg90 steering gear & Lighting Technology & Arduino
基于 KubeSphere 的分级管理实践
3632. Binary sum
Modify the default log level
The perfect presentation of Dao in the metauniverse, and platofarm creates a farm themed metauniverse
Error reported during vivado simulation common 17-39
Blue Bridge Cup SCM module code (LED) (code + comments)
lotus v1.16.0-rc2 Calibration-net
太美的承诺因为太年轻
Which securities company do you want to buy stocks to open an account faster and safer
StreamNative Platform 1.5 版本发布,集成 Istio、支持 OpenShift 部署