systemctl命令
来源:互联网 发布:关于网络舆论的法律 编辑:程序博客网 时间:2024/06/05 13:29
#########第八单元##########
系统服务的控制——————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 list-dependcies sshd(...) 查看指定服务的依赖关系
systemctl mask sshd(...) 冻结指定服务
systemctl unmask sshd(...) 启动指定服务
systemctl set-default multi-user.target 开机不启动图形
systemctl set-default graphical.target 开机启动图形
服务状态
systemctl status 服务名称
loaded ##系统服务已经初始化完成,加载过配置
active(running) ##正有一个或多个程序正在系统中执行
atcive(exited) ##仅执行一次就正常结束的,服务,目前没有任何程序在系统中执行
atcive(waiting) ##正在执行
inactive ##服务关闭
enbaled ##服务开机启动
disabled ##服务开机不自启
static ##服务开机启动项不可被管理
failed ##系统配置错误
- systemctl命令
- Systemctl命令
- systemctl命令
- systemctl命令
- systemctl命令
- systemctl命令
- systemctl命令
- systemctl命令
- systemctl命令
- systemctl命令用法
- systemctl命令用法详解
- systemctl命令用法
- chkconfig,systemctl命令用法
- systemctl命令用法
- systemctl命令用法
- systemctl命令用法
- systemctl命令用法
- systemctl 命令用法
- linux文件系统
- Nginx源码阅读(ngx_pool_t)
- 基于环信的仿QQ即时通讯的简单实现
- boolan——c++学习笔记之内存分配
- memory_target指定的值过小
- systemctl命令
- 8VC Venture Cup 2017 - Elimination Round D. PolandBall and Polygon
- js组合模式及宏命令
- React学习之路----2(React遍历数组)
- jsp 页面编码优先级
- splay 模板
- 多线程基础
- 06-1-linux下寻求帮助
- 高速PCB设计中的阻抗匹配