systemctl命令
First Post:
Last Update:
Word Count:
Read Time:
Last Update:
Word Count:
171
Read Time:
1 min
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
打赏点小钱
支付宝 | Alipay
微信 | WeChat