Linux操作-systemctl命令
约 74 字小于 1 分钟
Linux操作-systemctl命令
- 启动服务,执行
systemctl start sshd
- 查看当前服务状态,执行
systemctl status sshd
- 重启服务,执行
systemctl restart sshd
- 设置服务开启自启动,执行
systemctl enable sshd
- 查看服务是否设置开启自启动,执行
systemctl is-enables sshd
Powered by Waline v3.1.3