相关疑难解决方法(0)

rc.local 中的日志文件在哪里?

我的 rc.local 中有一些命令。我知道他们正在失败。如何获取包含通过执行 rc.local 生成的消息的日志文件?它位于哪里?

我检查了/var/log/boot.log。我知道我的消息不在那里,因为我已经知道失败的原因是什么。但我仍然想从日志文件中确定。

请注意,我不想再次运行脚本,我可以但我不想。我宁愿分析启动过程中发生了什么。

谢谢你的帮助。

Ubuntu 12.04 桌面版(如果重要的话)

boot log

54
推荐指数
3
解决办法
7万
查看次数

如果 UFW 只是 iptables 规则管理器,为什么必须在启动时(重新)启动它?

来自源包的自述文件说:

When installing ufw from source, you will also need to integrate it into your
boot process for the firewall to start when you restart your system. Depending
on your needs, this can be as simple as adding the following to a startup
script (eg rc.local for systems that use it):

# /lib/ufw/ufw-init start

For systems that use SysV initscripts, an example script is provided in
doc/initscript.example. See doc/upstart.example for an Upstart example. Consult
your distribution's documentation for the proper …
Run Code Online (Sandbox Code Playgroud)

security firewall ufw

6
推荐指数
2
解决办法
2万
查看次数

标签 统计

boot ×1

firewall ×1

log ×1

security ×1

ufw ×1