Keepalived注册为系统服务:
#进入解压目录(不是安装目录)
cd /home/software/keepalived-2.0.18/keepalived/etc/
#拷贝,并覆盖目标目录下的文件
cp init.d/keepalived /etc/init.d/
cp sysconfig/keepalived /etc/sysconfig/
#重新加载系统服务
systemctl daemon-reload
#启动keepalived服务
systemctl start keepalived.service//开启keepalived服务
systemctl stop keepalived.service//停止keepalived服务
systemctl restart keepalived.service//重启keepalived服务
keepalived服务化
最新推荐文章于 2024-08-17 21:10:52 发布