1、查看所有启动项:
systemctl list-unit-files
2、查看已启用的开机启动项:
systemctl list-unit-files | grep enabled
3、设置开机启动项:
systemctl enable [$service_name]
4、取消开机启动项:
systemctl disable [$service_name]
工作笔记
1、查看所有启动项:
systemctl list-unit-files
2、查看已启用的开机启动项:
systemctl list-unit-files | grep enabled
3、设置开机启动项:
systemctl enable [$service_name]
4、取消开机启动项:
systemctl disable [$service_name]