
查看开机启动项
1:systemctl list-unit-files --type=service
2:systemctl list-unit-files --type=service | grep enabled
3:systemctl list-unit-files --type=service | grep disabled

开机停止某个服务:
1:sudo systemctl stop vsftpd.service 2:sudo systemctl disable vsftpd.service

开机启动某个服务

以上就是良许教程网为各位朋友分享的Linux相关知识。
本文介绍了如何在Linux系统中查看开机启动项以及如何管理服务的启动和停止。通过`systemctl`命令,你可以列出所有服务,并区分启用和禁用的状态。要开机停止服务,例如`vsftpd`,可以使用`sudo systemctl stop vsftpd.service`和`sudo systemctl disable vsftpd.service`。而要开机启动服务,则需了解相应的服务名称和操作命令。
1146

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



