systemctl 常用命令总结

常用命令

systemctl  start  服务名      立即开启

systemctl  stop  服务名      立即关闭

systemctl  restart  服务名    重启服务

systemctl  status  服务名    输出运行状态

systemctl  is-enabled  服务名  检查是否配置为自动自启

systemctl  enable  服务名    开机自动启动

systemctl  disable  服务名    取消开机自动启动

reboot  重启系统  init6等

poweroff  退出系统并停止电源

查看sshd类型单元

可以通过type来过滤掉其他类型的单元 systemctl list-unit-files-type service

.server才是我们需要管理的服务

本文永久更新链接地址http://www.linuxidc.com/Linux/2017-04/143002.htm

linux

猜你喜欢

转载自blog.csdn.net/weixin_42747452/article/details/83352761