Linux debian8在重新启动/停止/启动后没有响应
几个月前,我通过安装Debian 8 Jessie访问了一个VPS。 对我来说奇怪的是,在执行一些操作(比如服务[stop | start | restart])之后,debian没有通知我(例如:重新启动nginx:nginx,就像旧的debian 7喘息)。 昨天,我在我的虚拟机上安装了Debian 8 Jessie,但“bug”依然存在。 我应该安装一些额外的库,还是设置它们?Linux debian8在重新启动/停止/启动后没有响应,linux,debian,Linux,Debian,几个月前,我通过安装Debian 8 Jessie访问了一个VPS。 对我来说奇怪的是,在执行一些操作(比如服务[stop | start | restart])之后,debian没有通知我(例如:重新启动nginx:nginx,就像旧的debian 7喘息)。 昨天,我在我的虚拟机上安装了Debian 8 Jessie,但“bug”依然存在。 我应该安装一些额外的库,还是设置它们? 提前感谢。Debian现在使用systemd systemctl start example1 调查syste
提前感谢。Debian现在使用
systemd
systemctl start example1
调查systemd
在启动或重新启动/关闭时挂起的原因
通过cmdline增加详细性:添加“systemd.log\u target=kmsg systemd.log\u level=debug”
[/etc/default/grub]
GRUB\u CMDLINE\u LINUX=“systemd.log\u target=kmsg systemd.log\u level=debug”systemd不像旧的SysV脚本那样冗长,因此您描述的“bug”是预期行为
像“service”这样的旧命令只是简单的符号链接/脚本,它们将工作委托给systemd。
据我所知,/etc/init.d脚本也是如此。这让我很困惑。如果我理解正确,如果操作成功,就不需要沟通。
[ /etc/default/grub ]
GRUB_CMDLINE_LINUX="systemd.log_target=kmsg systemd.log_level=debug" <--- Add here (by uncommenting you can easily switch to debug)
# update-grub