首页 > 其他分享 >debian 10之后 systemctl

debian 10之后 systemctl

时间:2022-10-13 15:04:11浏览次数:28  
标签:10 systemd lib service system etc systemctl ssh debian

添加系统开机ssh

systemctl enable ssh

ystemctl enable ssh
Synchronizing state of ssh.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable ssh
Created symlink /etc/systemd/system/sshd.service → /lib/systemd/system/ssh.service.
Created symlink /etc/systemd/system/multi-user.target.wants/ssh.service → /lib/systemd/system/ssh.service.

删除已有的开机服务

systemctl disable ssh
Synchronizing state of ssh.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install disable ssh
Removed /etc/systemd/system/sshd.service.
Removed /etc/systemd/system/multi-user.target.wants/ssh.service.

标签:10,systemd,lib,service,system,etc,systemctl,ssh,debian
From: https://www.cnblogs.com/JustLake/p/16788152.html

相关文章