岁月联盟 · 中国技术网 本站主页 | 安全认证 | 用户服务 | 技术论坛
新闻快报 | 新手学堂 | 黑客特区 | 程序语言 | 数 据 库 | 防 火 墙 | 路由交换 | 系统集成 | 服 务 器 | 存储备份 | 考试认证
Windows | Linux | Java | 协议分析 | 问题解答 | 进程大全 | 网页设计 | 多 媒 体 | 图库资料 | 软件下载 | 站内下载
  您现在的位置: 岁月联盟 >> Linux频道 >> 系统管理 >> 内核技术 >> Linux频道正文
详细解析 Linux内核的主要配置选项
作者:未知 文章来源:本站整理 点击数: 更新时间:2007-12-18 17:31:53

配置内核的命令是:

# make config 文本配置方式

# make menuconfig 菜单配置方式

# make xconfig 图形界面配置方式

我们可以采用任何一个命令配置内核,一般推荐使用make menuconfig来配置内核。

一.代码成熟度选项


Code maturity level options  --->

[*] Prompt for development and/or incomplete code/drivers

      [*]   Select only drivers expected to compile cleanly

在内核中包含了一些不成熟的代码和功能,如果我们想使用这些功能,想打开相关的配置选项,就必需打开这一选项。

二.通用设置选项

General setup  --->

()  Local version - append to kernel release

[*]  Automatically append version information to the version string

[*]  Support for paging of anonymous memory (swap)

[*]  System V IPC

[*]  POSIX Message Queues

[*]  BSD Process Accounting

[*]  BSD Process Accounting version 3 file format

[*]  Sysctl support

[ ]  Auditing support

[*]  Support for hot-pluggable devices

[*]  Kernel Userspace Events

[*]  Kernel .config support

[*]  Enable access to .config through /proc/config.gz

()   Initramfs source file(s)

[*]  Configure standard kernel features (for small systems)  --->

         --- Configure standard kernel features (for small systems)

         [ ]   Load all symbols for debugging/kksymoops

         [ ]    Do an extra kallsyms pass

         [ ]    Enable support for prinlk

         [ ]    BUG()support

         [ ]   Enable full-sinzed data structures for core

         [*]   Enable futex support

         [*]   Enable eventpoll support

         [*]   Optimize for size

         [*]   Use full shmem filesystem

         (0)   Function alignment

         (0)   Label alignment

         (0)   Loop alignment

               (0)   Jump alignment

[1] [2] [3] [4] 下一页  

Local version - append to kernel release:这里填入的是64字符以内的字符串,你在这里填上的字符口串可以用uname -a命令看到。

Support for paging of anonymous memory (swap):这是使用交换分区或者交换文件来做为虚拟内存的,当然要选上了。

System V IPC:表示系统5的Inter Process Communication,它用于处理器在程序之间同步和交换信息,如果不选这项,很多程序运行不起来的。

POSIX Message Queues:这是POSIX的消息队列,它同样是一种IPC。建议你最好将它选上。

BSD Process Accounting:这是充许用户进程访问内核将账户信息写入文件中的。这通常被认为是个好主意,建议你最好将它选上。

Sysctl support:这个选项能不重新编译内核修改内核的某些参数和变量,如果你也选择了支持/proc,将能从/proc/sys存取可以影响内核的参数或变量。建议你最好将它选上。

Auditing support:审记支持,用于和内核的某些子模块同时工作,例如SELinux。只有选择此项及它的子项,才能调用有关审记的系统调用。

Support for hot-pluggable devices:是否支持热插拔的选项,肯定要选上。不然USB、PCMCIA等这些设备都用不了。

[1] [2] [3] [4] 下一页


  • 上一个Linux频道:
  • 下一个Linux频道:
  •  
    热门文章
    推荐文章
    关于我们 | 发展历程 | 网站地图 | 广告服务 | 招贤纳士 | 战略合作 | 友情链接 | 著作声明 | 联系我们
    Copyright © 2002-2007 SYUE All rights reserved.
    E_mail:WebSyue@163.Com 皖ICP备05004589号
    未经授权禁止转载、摘编、复制或建立镜像.如有违反,追究法律责任.
    惊天动地私服 天龙八部私服 天龙八部私服 热血江湖私服 天龙八部私服 bet365 bet365 传世私服 传奇世界私服