Chinaunix首页 | 论坛 | 博客
  • 博客访问: 544753
  • 博文数量: 159
  • 博客积分: 10
  • 博客等级: 民兵
  • 技术积分: 1264
  • 用 户 组: 普通用户
  • 注册时间: 2011-02-20 14:15
个人简介

LoveMoney

文章存档

2016年(2)

2015年(8)

2014年(148)

2011年(1)

分类: 其他UNIX

2014-07-31 15:26:17


==============================
修改内核参数 B 测试机
参照A主机的参数修改B的参数


B:/#  kconfig -i myconfig /tmp/myconfig.A
Building a new kernel for the configuration being imported... done.
       * The configuration 'myconfig' has been imported from
         '/tmp/myconfig.A'.
B:/# 


=============
To save the current kernel configuration to "myconfig":
$ kconfig -s myconfig

To delete the saved configuration "useless":
$ kconfig -d useless

To export the current kernel configuration:
$ kconfig -e myconfig /tmp/myconfig.system

rcp /tmp/myconfig.system至b机

To import a kernel configuration:                       ---------在要重倒kernel的主机上
$ kconfig -i myconfig /tmp/myconfig.system
如果导入的过程中,发现有不可以导入的参数,可以用*注释这行

To rename a configuration:
$ kconfig -r myconfig savedconfig

To load the "nighttime" configuration and apply it immediately:   ------import 后需要reload,重启后生效
$ kconfig -l nighttime

To use the "approved" configuration at next boot:
$ kconfig -n approved

To discard changes being held pending for next boot:
$ kconfig -H


To add a description to a configuration:
$ kconfig -t approved "Changes approved

"Changes approved by management"
 
To get a list of all saved configurations:
$ kconfig
 
To get details of a saved configuration:
$ kconfig -v myconfig 




阅读(1854) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~