查看开机启动项
1 | systemctl list-unit-files |
会看到有两列,左侧是服务的名字,右侧是服务的状态,enabled代表开机自启
1 | UNIT FILE STATE |
禁用开机启动项
1 | systemctl disable kubelet |
启用开机启动
1 | systemctl enable kubelet |
1 | systemctl list-unit-files |
会看到有两列,左侧是服务的名字,右侧是服务的状态,enabled代表开机自启
1 | UNIT FILE STATE |
1 | systemctl disable kubelet |
1 | systemctl enable kubelet |