- Systemctl status service 查看对应service单元状态的详细信息
- Systemctl stop service 在运行中的系统上停止对应的服务
- Systemctl start service 在运行中的系统上启动对应的服务
- Systemctl restart service 在运行中的系统上重启对应的服务
- Systemctl reload service 重新加载运行中服务的配置文件
- Systemctl mask service 屏蔽对应服务,使其无法手动启动或系统启动时启动
- Systemctl unmask service 使屏蔽的服务重新变为可用的
- Systemctl enable service 将服务配置为在系统启动时启动
- Systemctl disable service 禁止服务在系统启动时启动
10.Systemctl is-active service 查看对应服务是否已启用
11.Systemctl is-enabled service 查看对应服务是否在系统启动时启动
12.Systemct -.-failed -.-type=service 查看失败的服务
系统运维——systemctl 命令摘要
最新推荐文章于 2022-09-09 14:19:34 发布