To disable permanently all low level kernel messages (iptables etc.) from flooding the console in Debian do the following changes:
(you must be root for these changes)
To make the changes permanent:
Edit the file /etc/sysctl.conf
add the following line:
kernel.printk = 4 1 1 7The above changes will be effective at reboot or immediately using the following command:
/sbin/sysctl -p /etc/sysctl.confTo make the changes only temporarily
echo "4 1 1 7" > /proc/sys/kernel/printkand you can check the setting with
cat /proc/sys/kernel/printk
本文提供了一种方法,通过编辑/etc/sysctl.conf文件,将所有低级内核消息设置为仅显示错误级别信息,从而避免在Debian系统控制台上出现过多消息。方法包括永久和临时两种方式。
1672

被折叠的 条评论
为什么被折叠?



