当前位置:网站首页>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.1
ln 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
边栏推荐
- keepalived監控進程,自動重啟服務進程
- 线程状态变化涉及哪些常用 API
- アルマ / alchemy girl
- Pratique de gestion hiérarchique basée sur kubesphere
- Using awk to process input from multiple files
- 赚够钱回老家吗
- 【他字字不提爱,却句句都是爱】
- Escape analysis of 982 golang
- Capable people never complain about the environment!
- 活动报名|Apache Pulsar x KubeSphere 在线 Meetup 火热报名中
猜你喜欢
破万,我用了六年!
赚够钱回老家吗
高数基础_函数的奇偶性
威迈斯新能源冲刺科创板:年营收17亿 应收账款账面价值近4亿
Harmony美食菜单界面
Several schemes of traffic exposure in kubernetes cluster
The perfect presentation of Dao in the metauniverse, and platofarm creates a farm themed metauniverse
[2022 dark horse programmer] SQL optimization
Practice of hierarchical management based on kubesphere
Operate cnblogs metaweblog API
随机推荐
joda. Time get date summary
弱大数定理的意义与证明
Design of PWM breathing lamp based on FPGA
5g private network market is in full swing, and it is crucial to solve deployment difficulties in 2022
Cocos学习日记3——api获取节点、组件
lotus v1.16.0-rc2 Calibration-net
[Yu Yue education] engineering testing technology reference of Wenhua University
Don't you know the evolution process and principle of such a comprehensive redis cluster model?
【UVM入門 ===> Episode_9 】~ 寄存器模型、寄存器模型的集成、寄存器模型的常規方法、寄存器模型的應用場景
威迈斯新能源冲刺科创板:年营收17亿 应收账款账面价值近4亿
Shell command learning
Kube scheduler source code analysis (1) - initialization and startup analysis
[XXL job] the pond is green and the wind is warm. I remember that Yu Zhen first met
Too beautiful promise because too young
I have used it for six years!
MCU IO explanation (pull-up pull-down quasi bidirectional input / output push-pull open drain)
We are different
LTpowerCAD II和LTpowerPlanner III
Event registration Apache pulsar x kubesphere online meetup hot registration
Wow, it's so rich.