restart/stop/start 后 debian8 没有响应
debian8 not response after restart/stop/start
几个月前,我获得了安装了 Debian 8 Jessie 的 VPS。
对我来说奇怪的是,在执行一些操作后(比如服务 [stop|start|restart],debian 没有通知我(例如:重新启动 nginx:nginx,就像旧的 debian 7 wheezy)。
昨天,我在我的虚拟机上安装了 Debian 8 Jessie,但是 "bug" 仍然存在。
我应该安装一些额外的库,还是设置它们?
提前致谢。
Debian 现在使用 systemd
。
systemctl start example1
调查为什么 systemd
在启动或 reboot/shutdown 时挂起。
通过 cmdline 增加详细程度:添加 "systemd.log_target=kmsg systemd.log_level=debug"
[ /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
Systemd 不像旧的 SysV 脚本那样冗长,因此您描述的 "bug" 是预期的行为。
旧命令,如 "service" 只是简单的符号链接/脚本,将工作委托给 systemd。
据我所知,/etc/init.d 脚本也是如此。
几个月前,我获得了安装了 Debian 8 Jessie 的 VPS。 对我来说奇怪的是,在执行一些操作后(比如服务 [stop|start|restart],debian 没有通知我(例如:重新启动 nginx:nginx,就像旧的 debian 7 wheezy)。 昨天,我在我的虚拟机上安装了 Debian 8 Jessie,但是 "bug" 仍然存在。 我应该安装一些额外的库,还是设置它们? 提前致谢。
Debian 现在使用 systemd
。
systemctl start example1
调查为什么 systemd
在启动或 reboot/shutdown 时挂起。
通过 cmdline 增加详细程度:添加 "systemd.log_target=kmsg systemd.log_level=debug"
[ /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
Systemd 不像旧的 SysV 脚本那样冗长,因此您描述的 "bug" 是预期的行为。
旧命令,如 "service" 只是简单的符号链接/脚本,将工作委托给 systemd。 据我所知,/etc/init.d 脚本也是如此。