自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

CentOS 上安裝Linux 新內(nèi)核

運(yùn)維 系統(tǒng)運(yùn)維
CentOS vsftpd 安裝還是比較常用的,這里所講解介紹centos vsftpd的安裝。CentOS Linux與RHEL產(chǎn)品有著嚴(yán)格的版本對(duì)應(yīng)關(guān)系。

  CentOS 5.5所帶的內(nèi)核還是2.6.18.x系列,有點(diǎn)老了。因?yàn)橹芭季幾g過LFS與Gentoo,編譯內(nèi)核有一些經(jīng)驗(yàn)了,所有這次還比較順利。本次編譯的系統(tǒng)是32位的,64位的稍有不同。下面的筆記在虛擬機(jī)與物理機(jī)中都驗(yàn)證通過,所有操作全部以root權(quán)限在終端進(jìn)行。

  下面是本次編譯升級(jí)了到今天為止最新的穩(wěn)定版內(nèi)核2.6.35.1版的筆記總結(jié):

  編譯前的準(zhǔn)備工作:

  要成功地創(chuàng)建一個(gè)內(nèi)核,需要安裝下列組件:

  yum groupinstall “Development Tools” #這樣做會(huì)確定你擁有編譯時(shí)所需的一切工具。

  yum install ncurses-devel #這樣才能讓 make *config 這個(gè)指令正確地執(zhí)行。

  yum install qt-devel #如果你用 make xconfig 而不是 make gconfig 或 make menuconfig,才需要這樣做。

  1、下載新內(nèi)核源碼包:

  cd /usr/src

  wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.35.1.tar.bz2

  tar jxvf linux-2.6.35.1.tar.bz2

  cd linux-2.6.35.1

  2、下載內(nèi)核標(biāo)準(zhǔn)配置文件:

  wget http://www.ha97.com/code/config

  mv config .config

  3、編譯內(nèi)核:

  make dep

  注:選擇編譯進(jìn)去內(nèi)核的模塊,默認(rèn)回車即可。這一步如果系統(tǒng)時(shí)間不正確會(huì)提示“警告:檢測(cè)到時(shí)鐘錯(cuò)誤。您的創(chuàng)建可能是不完整的。”的警告。解決方法:把時(shí)間改正確或者運(yùn)行下面的命令再make

  find . -type f -exec touch {} ;

  make bzImage

  make modules

  make modules_install

  make install

  4、解壓修改內(nèi)核:

  cp /boot/initrd-2.6.35.1.img /tmp/

  cd /tmp/

  mkdir newinitrd

  cd newinitrd/

  zcat ../initrd-2.6.35.1.img |cpio -i

  rm -fr /tmp/initrd-2.6.35.1.img

  vim init

  找到這2段一樣的,去掉其中1段重復(fù)的:

  echo “Loading dm-region-hash.ko module”

  insmod /lib/dm-region-hash.ko

  echo “Loading dm-region-hash.ko module”

  insmod /lib/dm-region-hash.ko

  5、從新打包新內(nèi)核:

  find .|cpio -c -o > ../initrd

  cd ../

  gzip -9 < initrd > initrd-2.6.35.1.img

  rm -fr /boot/initrd-2.6.35.1.img

  cp initrd-2.6.35.1.img /boot

  rm -fr /usr/src/linux-2.6.35.1.tar.bz2

  rm -fr /usr/src/linux-2.6.35.1

  6、設(shè)置從新內(nèi)核啟動(dòng)系統(tǒng):

  vim /boot/grub/grub.conf

  把default=1改為default=0

  7、重新啟動(dòng)系統(tǒng):

  reboot

  8、如圖所示,啟動(dòng)成功,OK

  

  

【編輯推薦】

  1. 安裝CentOS vsftpd 設(shè)置
  2. 用vsftp部署一個(gè)功能強(qiáng)大的ftp服務(wù)器
  3. Centos下ProFTPD配置FTP服務(wù)器
  4. vsFTPD設(shè)置(菜鳥篇)
  5. vsftpd.conf的設(shè)定值
  6. vsftpd常見問題的解決
責(zé)任編輯:zhaolei 來源: 網(wǎng)絡(luò)轉(zhuǎn)載
相關(guān)推薦

2015-04-23 10:20:52

Linux內(nèi)核4.0UbuntuCentOS

2011-03-29 10:22:35

CentOS安裝Zabbix

2011-03-11 17:14:27

2010-01-20 10:42:40

2024-02-19 16:28:24

2010-05-19 15:23:51

Linux 2.6.3Ceph分布式文件系統(tǒng)

2010-03-02 16:13:56

Linux升級(jí)

2010-11-17 09:11:38

Linux內(nèi)核補(bǔ)丁

2011-04-25 09:20:05

Linux內(nèi)核

2011-03-09 09:30:45

Linux安裝LAMP

2011-03-09 10:52:36

CentOS安裝LAMP

2011-01-20 10:27:39

2019-05-10 08:00:00

UKUUUbuntuLinux

2019-04-01 17:43:21

Linux內(nèi)核網(wǎng)關(guān)設(shè)計(jì)

2010-02-02 13:26:53

Linux內(nèi)核

2017-08-15 11:58:15

LinuxCentOSApache Hado

2012-09-17 16:41:04

CentOS5Puppet

2011-04-08 10:10:23

2013-12-24 13:35:47

2011-02-25 10:36:24

點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號(hào)