linux社区爱心援助Linux认证系列教程业界动态站务新闻公司招聘建议留言网址大全LPI专题CISCO专题
设为首页
加入收藏
管理团队
JSP  
JAVA  
PERL  
 您的位置:首页 > article > unix > unix入门 >
栏目导栏
资料搜索
热门文章
·SCO OpenServer系统手册
·solaris迅速查找手册
·UNIX常用命令-目录及文件操作命
·常见的“压缩与解压缩”方法
·SUN的入门培训资料
·Solaris FAQ 1.2
·UNIX系统操作入门篇
·unix大全下载基地
·教你如何配置安全的SOLARIS系统
·吐血奉献.samba安装设置!
·solaris常用命令及简单解释
·UNIX 常识总集~!
·Windows XP 与 Solaris 10 双操
·隆重推荐:Solaris硬盘分区简介
·UNIX基础知识
最新文章
·Solaris SSH的配置和管理介绍
·在Unix环境下mount ISO文件
·Solaris 管理员常用的168条命令
·solaris raid 制作大集合
·在Solaris下使用USB存储设备
·SecureCRT访问HPUX没办法用vi问
·scounix网络设置心得
·solaris网络配置
·solaris上直接运行linux二进制
·HP Unix的补丁安装
·系统备份与恢复命令:fbackup+
·Oracle 10g基于Solaris 9 x86平
·完全硬盘安装solaris10
·solaris点滴9.29-10.07
·solaris volume manager do RA
Google
 
FreeBSD全能服务器安装手册之内核编译篇
[ 作者:Linux联盟收集  加入时间:2006-06-14 13:47:09  来自:Linux联盟收集 ]

################################编译系统内核###################################

进入内核编辑区域

cd /usr/src

 

多线程支持加快编译速度(注意:cpu的占用率会升高)

make -j4 buildworld

 

备份原有内核

cd /usr/src/sys/i386/conf

cp GENERIC  /root/GENERIC.OLD

 

编辑内核

ee NS1

 

建立内核

cd /usr/src

make buildkernel

 

安装内核

make installkernel

 

重新启动计算机

shutdown -r now

 

mergemaster -p

更新系统配置文件。这个命令后会跟随多个提示问题建议仔细阅读后做出选择如果是安装系统后第一次同步代码并是在没有安装任何软件的情况下可以考虑执行mergemaster –ai

“跳过询问信息选择全部更新”

提示如下

www# mergemaster -p

 

*** Creating the temporary root environment in /var/tmp/temproot

 *** /var/tmp/temproot ready for use

 *** Creating and populating directory structure in /var/tmp/temproot

 

 

 

*** Beginning comparison

 

 *** Temp ./etc/master.passwd and installed have the same CVS Id, deleting

 *** Temp ./etc/group and installed have the same CVS Id, deleting

 

*** Comparison complete

 

Do you wish to delete what is left of /var/tmp/temproot? [no] yes

//我选择了yes删除/var/tmp/temproot

//将会有以下显示结果

*** /var/tmp/temproot has been deleted

 

grep: /etc/make.conf: No such file or directory

 

*** Comparing make variables

 

*** From /etc/make.conf

*** From /usr/src/share/examples/etc/make.conf

 

 

 

 

 

更新系统配置文件

cd /usr/src

make installworld

 

mergemaster

shutdown -r now

 

 

 

删除/usr/obj以防影响下一次编译内核

cd /usr/obj

chflags -R noschg *

rm -rf *

Linux联盟收集整理 ,转贴请标明原始链接,如有任何疑问欢迎来本站Linux论坛讨论
评论】【加入收藏夹】【 】【打印】【关闭
※ 相关链接
无相关信息