简体   繁体   中英

How to permanently change linux printk log level?

I have to run the following command every time when the system is rebooted, in order to get boot time log level changed to level 3:

cat /proc/sys/kernel/printk
7 4 1 7
echo "7 4 1 3">/proc/sys/kernel/printk

My question is: is there any way I can get the boot time log level set to 3 permanently instead of changing it every time after reboot?

只需将以下行附加到/etc/sysctl.conf文件:

kernel.printk = 7 4 1 3

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM