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

head和systemctl

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

head和systemctl

head -1 /etc/pass.txt 查看前1行的命令
tail -1 tes.txt 显示后一行的命令
tail -f 1.txt 实时滚动的日志

systemctl 管理服务程序的运行状态
systemctl start 服务名称 启动
systemctl stop 服务名称 停止
systemctl restart 服务名称 重启
systemctl status 服务名称 查看服务详情 运行状态
systemctl disable 服务名称 开机不运行
systemctl enable 服务名称 开机运行
systemctl is-active 服务名称 检查确认服务是否运行
systemctl is-enabled 服务名称 检查开机是否运行
firewalld --防火墙服务

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

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

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