首先使用命令,列出当前服务
service –status-all

systemctl is-enabled servicename.service #查询服务是否开机启动systemctl is-enabled bluetooth.service如果是enable开机自启动 如果是disable不开机启动systemctl enable *.service #开机运行服务systemctl disable *.service #取消开机运行sudo systemctl disable bluetooth.service#关闭蓝牙服务systemctl start *.service #启动服务systemctl stop *.service #停止服务systemctl restart *.service #重启服务systemctl reload *.service #重新加载服务配置文件systemctl status *.service #查询服务运行状态
本文详细介绍Linux下服务的管理命令,包括服务的启动、停止、重启、开机启动设置及状态查询等操作,为系统管理员提供实用的参考。

3439

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



