Centos 下利用 systemctl 重启某个服务, sshd
记一次重启 sshd 的经历

分为以下几步
- 找出目标服务
- 利用
restart
命令
命令列表
# 1. 找出服务
systemctl -a | grep ssh
# 2. 重启
sudo systemctl restart sshd.service
restart
命令# 1. 找出服务
systemctl -a | grep ssh
# 2. 重启
sudo systemctl restart sshd.service