开启一个服务
systemctl start ssh.service
关闭一个服务
systemctl stop ssh.service
重启服务
systemctl restart ssh.service
开机启动
systemctl enable ssh.service
禁止开机启动
sudo systemctl disable ssh.service
查看已启动服务
systemctl list-units --type service
开启一个服务
systemctl start ssh.service
关闭一个服务
systemctl stop ssh.service
重启服务
systemctl restart ssh.service
开机启动
systemctl enable ssh.service
禁止开机启动
sudo systemctl disable ssh.service
查看已启动服务
systemctl list-units --type service