Ubuntu 设置 keepalived 为系统服务、开机自启动,需要用:
update-rc.d keepalived default
--------------------------------------------------------------
在Ubuntu中是没有chkconfig命令的,可以用update-rc.d 来代替。
# update-rc.d sshd defaults # Activate sshd with the default runlevels
# update-rc.d sshd start 20 2 3 4 5 . stop 20 0 1 6 . # With explicit arguments
# update-rc.d -f sshd remove # Disable sshd for all runlevels
# shutdown -h now (or # poweroff) # Shutdown and halt the system
参考:https://blog.youkuaiyun.com/elim051/article/details/6173367
本文介绍如何在Ubuntu系统中使用update-rc.d命令管理服务,包括设置服务默认启动、指定运行级别启动及禁用服务的方法。
759

被折叠的 条评论
为什么被折叠?



