Linux 系统中所有的自启动服务都会在/etc/systemd/system/multi-user.target.wants/
目录下生成相应的【自启动配置文件】,所以我们只要查看该目录即可得知全部的自启动服务。
ls -l /etc/systemd/system/multi-user.target.wants/
扩展知识
1、设置自启动服务(以 nginx 为例)
systemctl enable nginx
1、关闭自启动服务(以 nginx 为例)
systemctl disable nginx
最后
以上就是昏睡猫咪最近收集整理的关于Linux查看系统自启动服务的全部内容,更多相关Linux查看系统自启动服务内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复