歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Unix知識 >> 關於Unix >> FreeBSD下編譯升級內核的不同操作手法

FreeBSD下編譯升級內核的不同操作手法

日期:2017/2/28 11:15:52   编辑:關於Unix


編譯安裝升級內核的方法
一、
#cd /usr/src
#make world
#cd sys/i386/conf
#cp GENERIC NEWKERNEL
#/usr/sbin/conf NEWKERNEL
#cd ../../compile/NEWKERNEL
#make
#make install
二、
#cd /usr/src
#mergemaster –p
#make buildworld
#make buildkernel KERNC
#make installkernel KERNC
# reboot
啟動到單用戶模式下。然後執行:
#mount –u /
#mount -a
# mergemaster -p
# make installworld
# mergemaster
# reboot
三、(適用於大內存高CPU)
cvsup先
# /usr/local/bin/cvsup -g -L 2 /etc/ports-supfile
# /usr/local/bin/cvsup -g -L 2 /etc/stable-supfile
cd /usr/src
# make -j 80 buildworld
# make -j 80 buildkernel
# make -j 80 installkernel
Copyright © Linux教程網 All Rights Reserved