Linux Kernel 有 8 个级别的 loglevel:
- #define KERN_EMERG "<0>" /* system is unusable,系统不可用 */
- #define KERN_ALERT "<1>" /* action must be taken immediately,立即执行 */
- #define KERN_CRIT "<2>" /* critical conditions,紧急情况 */
- #define KERN_ERR "<3>" /* error conditions,错误情况 */
- #define KERN_WARNING "<4>" /* warning conditions,警告情况 */
- #define KERN_NOTICE "<5>" /* normal but significant condition,常规但重要的情况 */
- #define KERN_INFO "<6>" /* informational,消息类 */
- #define KERN_DEBUG "<7>" /* debug-level messages,调试信息 */
设置为高级别的 loglevel 将会显示本身和低于他本身的所有信息。
Linux 有 7 种不同的运行级别(run level,或者说操作模式):
- rc0 – System Halted,系统关机
- rc1 – Single User Mode,单用户模式
- rc2 – Single User Mode with Networking,单用户模式,网络功能启用
- rc3 – Multi-User Mode – boot up in text mode,多用户模式,启动进入文本模式
- rc4 – Not yet Defined,未定义
- rc5 – Multi-User Mode – boot up in X Window,多用户模式,启动进入 X window
- rc6 – Shutdown & Reboot,关机或重启
Leave a Reply