栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

systemctl命令详解

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

systemctl命令详解

systemctl命令详解:

格式:systemctl COMMAND name.service

#启动:
systemctl start name.service

#停止:
systemctl stop name.service

#重启:
systemctl restart name.service

#查看状态:
systemctl status name.service

#查看某服务当前激活与否的状态:
systemctl is-active name.service

#查看所有已经激活的服务:
systemctl list-units --type|-t service

#设定某服务开机自启:
systemctl enable name.service

#设定某服务开机禁止启动:
systemctl disable name.service

#查看服务是否开机自启:
systemctl is-enabled name.service

#开机并立即启动或停止:
systemctl enable --now postfix
systemctl disable --now postfix

#查看服务的依赖关系:
systemctl list-dependencies name.service

#重新加载
systemctl reload name.service

#重新加载服务配置文件
systemctl daemon-reload

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/694109.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号