linux-日常运维- unit介绍
2018-10-31 02:22
537 查看
ls /usr/lib/systemd/system/ 文件源路径
上述图片中的文件都叫unit
service 系统服务
target 多个unit组成的组
device 硬件设备
mount 文件系统挂载点
automount 自动挂载点
path 文件或路径
scope 不是由systemd启动的外部进程
slice 进程组
snapshot systemd快照
socket 进程间通信套接字
swap swap文件
timer 定时器
unit相关的命令
systemctl list-units //列出正在运行的unit
systemctl list-units --all //列出所有,包括失败的或者inactive的
systemctl list-units --all --state=inactive //列出inactive的unit 指定状态
systemctl list-units --type=service//列出状态为active的service
systemctl is-active crond.service //查看某个服务是否为active
systemctl is-enabled crond.service //查看某个服务是否为enabled
相关文章推荐
- linux-日常运维- target介绍
- linux日常运维(crond,systemd,chkconfing,unit,target)
- linux日常运维管理技巧
- linux的运维管理UNIT3
- linux基础,日常运维,6,任务计划cron
- linux基础,日常运维,8
- 笔记8(日常运维w、vmstat、top、sar、nload、free、ps、netstat、tcptump、Linux防火墙)
- Linux日常运维--2
- linux学习第三十二篇:linux任务计划cron,chkconfig工具,systemd管理服务,unit介绍,target介绍
- 笔记9(日常运维2iptables nat表、zone、service、cron、chkconfig、systemd、unit、target、rsyncscreen)
- linux任务计划 chkconfig工具 systemd管理服务 unit介绍 target介绍
- Linux日常运维脚本
- Linux运维笔记-文档总结-FTP介绍,安装,以及匿名用户和本地用户的操作
- Linux平台日常运维管理
- Linux日常运维管理技巧-iostat、iotop、free、ps、netstat、tcpdump、tshark命令
- Linux日常运维管理技巧--监控系统状态
- oracle日常运维操作总结--linux下oracle数据库的启动和关闭
- [10] Linux系统日常运维
- linux任务计划 chkconfig工具 systemd管理服务 unit介绍 target介绍
- Linux学习笔记:MySQL日常运维查询状态