Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
每次重新启动系统时,我都必须运行以下命令,以便将启动时间日志级别更改为 3 级:
cat /proc/sys/kernel/printk 7 4 1 7 echo "7 4 1 3">/proc/sys/kernel/printk
我的问题是:有什么方法可以将启动时间日志级别永久设置为 3,而不是每次重新启动后都更改它?
只需将以下行附加到 /etc/sysctl.conf 文件:
kernel.printk = 7 4 1 3