我正在尝试在启动时添加 ssh 守护进程,但遇到了以下问题
$ sudo update-rc.d ssh start 50 2 3 4 5 . stop 90 0 1 6 .
update-rc.d: warning: stop runlevel arguments (0 1 6) do not match ssh Default-Stop values (none)
Adding system startup for /etc/init.d/ssh ...
/etc/rc0.d/K90ssh -> ../init.d/ssh
/etc/rc1.d/K90ssh -> ../init.d/ssh
/etc/rc6.d/K90ssh -> ../init.d/ssh
/etc/rc2.d/S50ssh -> ../init.d/ssh
/etc/rc3.d/S50ssh -> ../init.d/ssh
/etc/rc4.d/S50ssh -> ../init.d/ssh
/etc/rc5.d/S50ssh -> ../init.d/ssh
答案1
Update-rc.d 将尝试修改现有的运行级别链接。如果不存在,则会抛出错误。
尝试默认选项来创建链接。
update-rc.d -f script defaults