1
2
3
systemd
service
systemctl

初始化

Debian 貌似不存在这两个文件,我尝试 ln -s 失败
Ubuntu 存在这个文件,可以使用,但是重启之后系统就进不去了
Ubuntu 最好不要尝试 apt-get install systemctl
Docker 最好不要尝试安装 vim

1
2
/usr/sbin/init
/sbin/init

1
2
ln -s /lib/systemd/systemd /sbin/init
ln -s /lib/systemd/systemd /usr/sbin/init

1
2
3
4
vi /start.sh
# 别尝试设置在这个为启动项,当然也可以,当然也不可以 run -it -d cs:4.2 /cs.sh
#!/bin/bash
/usr/sbin/sshd -D &

XRSec has the right to modify and interpret this article. If you want to reprint or disseminate this article, you must ensure the integrity of this article, including all contents such as copyright notice. Without the permission of the author, the content of this article shall not be modified or increased or decreased arbitrarily, and it shall not be used for commercial purposes in any way