freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

linux操作系統(tǒng)09-模塊內(nèi)核-展示頁

2024-10-10 16:29本頁面
  

【正文】 ? 2) 使用 tar命令把源代碼解包到 /usr/src/linuxversionext目錄 ? 3) 使用 cd命令把路徑切換到這個目錄。 ? 9) 依次打補(bǔ)丁 ? 10) 準(zhǔn)備編譯 ? 注意:在源代碼中有時候會包括有一個名為 kernelpatch的命令腳本程序,該程序的功能是按順序打所有的補(bǔ)丁。 ? 8) 使用 patch命令把這個補(bǔ)丁打到源代碼中去。 ? 7) 每一個補(bǔ)丁都應(yīng)該分別并按順序來處理。 ? 5) 把下載的源代碼和補(bǔ)丁都拷貝到這個目錄中。如果其中有一個/usr/src/linuxversionext目錄已經(jīng)存在的話,一般情況這就是正在已經(jīng)運(yùn)行的內(nèi)核源代碼。 ? 2) 使用 c d命令把路徑切換到 /usr/src目錄。每次升級修復(fù)一個特定的 bug,增加一個新的驅(qū)動程序或者功能,或者實(shí)現(xiàn)其他任務(wù)。 –在成熟版本中,緊跟在第一個句號后面的第一個數(shù)字是一個偶數(shù)。 –2) 查看緊跟在句號 ” .‖后面的第二個數(shù)字。 –用戶希望對內(nèi)核進(jìn)行優(yōu)化。 Acegene IT Co. Ltd. 26 安裝新內(nèi)核 ? Distributed by vendors in binary RPM format – Red Hat: kernel{smp|enterprise}*. – UnitedLinux: ??? ? RPM contents: – /boot/vmlinuz$LABEL – /boot/$LABEL – /lib/module/$LABEL/… ? RPM script generates a new initrd$LABEL and automatically adds a Grub entry ? If using LILO instead of Grub, then add entry manually and rerun /sbin/lilo Acegene IT Co. Ltd. 27 編譯或者不編譯內(nèi)核的原因 ? 編譯的原因 –運(yùn)行一個程序,但是操作系統(tǒng)不支持該程序需要的功能。 5 too many spammers out there! chkconfig level 35 sendmail off Acegene IT Co. Ltd. 24 4 內(nèi)核 ? 核心服務(wù) ? 內(nèi)核編譯和安裝 ? 模塊加載卸載 Acegene IT Co. Ltd. 25 核心級系統(tǒng)服務(wù) ?核心系統(tǒng)服務(wù): init、 id、 syslog和cron。 – /etc/?適合修改比較細(xì)致,或者還要求關(guān)閉進(jìn)程的操作必須使之明確地停止運(yùn)行 ?這個命令腳本程序必須可以接受 start和 stop參數(shù)并完成相應(yīng)的操作。 Acegene IT Co. Ltd. 21 編寫自己的 rc命令腳本程序 ? 有兩種方法可以用來實(shí)現(xiàn)修改開機(jī)或者關(guān)機(jī)命令腳本的目的: – /etc/?如果所做的修改只在引導(dǎo)開機(jī)的時候起作用,并且改動不大的話,可以考慮簡單地編輯一下 /etc/。 ? 缺省的運(yùn)行級別 – 取決于配置文件 /etc/inittab id:3:initdefault: Run Level Description 6 5 4 3 2 1 0 Reboot GUI (Unused) MultiUser No Network Single User Halt Acegene IT Co. Ltd. 20 開機(jī)引導(dǎo)的步驟 ? 命令腳本程序 –執(zhí)行 –執(zhí)行腳本在各個運(yùn)行級別的子目錄中/etc/rc{RUNLEVEL}.d ?都建立有到 /etc/。 ? 快速執(zhí)行一下 ps af 命令可以列出許多父進(jìn)程 ID( parent process ID, PPID)為 1的進(jìn)程來。 ? init進(jìn)程有兩個作用: – 扮演終極父進(jìn)程的角色。 – init是第一個運(yùn)行的進(jìn)程, – init的進(jìn)程編號永遠(yuǎn)是 1。 –內(nèi)核就能夠掛裝根文件系統(tǒng),內(nèi)核掛裝了根文件系統(tǒng)之后, –啟動并運(yùn)行一個叫做 init的程序。 –這個文件的頭部包含著必要的代碼,先設(shè)置 CPU進(jìn)入安全模式(以此解除內(nèi)存限制)再對內(nèi)核的剩余部分進(jìn)行解壓縮。 Acegene IT Co. Ltd. 10 RPM Builds ? Builds consist of multiple phases: –Prep – extracts and patches sources –Build – make individual binaries –Install – creates an install staging area ?Doesn’t install it for use on the local system! ? Additional actions e after Install phase: –Create a source RPM –Create a binary RPM Acegene IT Co. Ltd. 11 RPM Work Area ? Work area is used for building RPMs ? Location depends on vendor: – Red Hat: /usr/src/redhat – UnitedLinux: /usr/src/packages ? Directory structure contents: – SPECS – RPM spec file – SOURCES – source archives and patches – BUILD – extracted source, objects, binaries – RPMS – generated binary RPMs – SRPMS – generated source RPMs Acegene IT Co. Ltd. 12 RPM Build Procedure 1. First, install source RPM – Populates SPECS and SOURCES 2. Run build phases ? Populates BUILD and creates staging area 3. Generate binary and/or source RPMs ? Populates RPMS and SRPMS, respectively 4. Clean up the build area 5. Install the new binary RPM if desired Acegene IT Co. Ltd. 13 RPM Build Example ? All in one go: rpm ––rebuild ? Stepbystep: rpm –i
點(diǎn)擊復(fù)制文檔內(nèi)容
范文總結(jié)相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1