Ubuntu 没有 chkconfig 命令,所以设置 keepalived 开机自启动 要用 update-rc.d

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.csdn.net/elim051/article/details/6173367

猜你喜欢

转载自blog.csdn.net/beguile/article/details/88843936
今日推荐