1147
备注:
|
1147
converted to 1.6 markup
|
未发现区别! |
linux 进程管理api
- fork 创建新进程
- exec* 用一个新的程序代替当前运行的进程
- wait 等待子进程结束
内核编译
下载内核:http://www.kernel.org/ ,解压缩
配置内核选项:
cp /boot/config-`uname -r` ./.config make menuconfig
编译内核:
make-kpkg clean fakeroot make-kpkg --initrd --append-to-version=-custom kernel_image kernel_headers
安装内核:
dpkg -i linux-image-2.6.18.1-custom_2.6.18.1-custom-10.00.Custom_i386.deb dpkg -i linux-headers-2.6.18.1-custom_2.6.18.1-custom-10.00.Custom_i386.deb
修改引导文件:
vi /boot/grub/menu.lst title Ubuntu, kernel 2.6.18.1-custom root (hd0,0) kernel /boot/vmlinuz-2.6.18.1-custom root=/dev/sda1 ro quiet splash initrd /boot/initrd.img-2.6.18.1-custom savedefault boot title Ubuntu, kernel 2.6.18.1-custom (recovery mode) root (hd0,0) kernel /boot/vmlinuz-2.6.18.1-custom root=/dev/sda1 ro single initrd /boot/initrd.img-2.6.18.1-custom boot
- 使用新内核重启