系统服务
来源:互联网 发布:linux的安全审计服务 编辑:程序博客网 时间:2024/05/10 12:24
系统服务的控制
1.systemd
系统初始化程序,系统开始的第一个进程,pid为1
2.systemctl 命令
systemctl list-units ##列出当前系统服务的状态
systemctl list-unit-files ##列出服务的开机状态
systemctl status sshd ##查看指定服务的状态
systemctl stop sshd ##关闭指定服务
systemctl start sshd ##开启指定服务
systemctl restart sshd ##从新启动服务
systemctl enable sshd ##设定指定服务开机开启
systemctl disable sshd ##设定指定服务开机关闭
systemctl reload sshd ##使指定服务从新加载配置
systemctl list-dependencies sshd ##查看指定服务的倚赖关系
systemctl mask sshd ##冻结指定服务
systemctl unmask sshd ##启用服务
systemctl set-default multi-user.target ##开机不开启图形
systemctl set-default graphical.target ##开机启动图形
setterm ##文本界面设定color
3.服务状态
systemctl status 服务名称
loaded ##系统服务已经初始化完成,加载过配置
active(running) ##正有一个或多个程序正在系统中执行,
# vsftpd 就是這種模式
atcive(exited) ##执行一次就正常结束的服务
# 目前沒有任何程序在系统中执行
atcive(waiting) ##正在执行当中
# 不过还再等待其他的事件才能继续处理
inactive ##服务关闭
enbaled ##服务开机启动
disabled ##服务开机不自启
static ##服务开机启动项不可被管理
failed ##系统配置错误
- 系统服务
- 系统服务
- 系统服务
- 系统服务
- 系统服务
- 系统服务
- 系统服务
- 系统服务
- 系统服务
- 系统服务
- 系统服务
- 系统服务
- 系统服务
- 系统服务
- 系统服务
- 系统服务
- 系统服务
- 系统服务
- Qt中显示opencv生成图片
- Python readlines and readline
- hdu5222 Exploration【并查集+拓扑排序】
- 摆积木
- C
- 系统服务
- 程序猿必须掌握的三大排序之冒泡排序
- JVM Young Generation的minor GC日志字段不详解
- 通过jQuery实现合理的年月日选择(select>option)
- Genymotion 使用教程
- Android 自定义View 使用Kotlin编写雷达扫描效果
- final
- Keepalived--概念(1)
- Halcon学习之分享之路