亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費(fèi)注冊(cè) 查看新帖 |

Chinaunix

  平臺(tái) 論壇 博客 文庫(kù)
最近訪問(wèn)板塊 發(fā)新帖
查看: 1970 | 回復(fù): 0
打印 上一主題 下一主題

單用戶模式與多用戶模式 [復(fù)制鏈接]

論壇徽章:
1
15-16賽季CBA聯(lián)賽之北控
日期:2022-03-04 22:35:50
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報(bào)告]
發(fā)表于 2008-03-21 23:59 |只看該作者 |倒序?yàn)g覽
整個(gè)UNIX系統(tǒng)的啟動(dòng)過(guò)程主要做三項(xiàng)工作:引導(dǎo)核心,檢查文件系統(tǒng),啟動(dòng)各種daemon程序。即它可分為兩個(gè)階段:一是系統(tǒng)自舉;二是啟動(dòng)UNIX。其中,啟動(dòng)UNIX階段主要由boot程序引導(dǎo)核心程序開始,即系統(tǒng)的引導(dǎo)。當(dāng)UNIX被引導(dǎo)運(yùn)行后,將啟動(dòng)一個(gè)稱之為init的進(jìn)程。該進(jìn)程將啟動(dòng)/etc/inittab文件中所列的進(jìn)程,并且引導(dǎo)系統(tǒng)進(jìn)入特定的運(yùn)行級(jí)別。
    ?  單用戶模式又稱為系統(tǒng)維護(hù)模式,它一般只適用于系統(tǒng)中的用戶都已退出系統(tǒng),并且對(duì)系統(tǒng)進(jìn)行維護(hù)操作時(shí)。由于在進(jìn)行模式選擇時(shí)直接進(jìn)入到單用戶模式,所以沒有執(zhí)行/etc/rc文件中的各種精靈程序和啟動(dòng)程序。而進(jìn)入多用戶模式時(shí),啟動(dòng)的過(guò)程從設(shè)置系統(tǒng)的時(shí)間開始,然后繼續(xù)啟動(dòng)相關(guān)的進(jìn)程。這一點(diǎn),從系統(tǒng)的啟動(dòng)過(guò)程的提示信息中可以看出。單用戶模式root用戶和多用戶模式下的root用戶狀態(tài)其啟動(dòng)的系統(tǒng)資源是不一樣的。讀者還可從下列操作的結(jié)果中看到。
單用戶模式下進(jìn)行下列的操作:
# ps –ef &
    UID    PID  PPID  C    STIME      TTY        TIME CMD
    root     0     0  0    May-20       ?    00:00:00 sched
    root     1     0  0    May-20       ?    00:00:00 /etc/init
    root     2     0  0    May-20       ?    00:00:00 vhand
    root     3     0  0    May-20       ?    00:00:00 bdflush
    root     4     0  0    May-20       ?    00:00:00 kmdaemon
    root     5     1  0    May-20       ?    00:00:00 htepi_daemon /
    root     6     0  0    May-20       ?    00:00:00 strd
    root    92     1  2 20:02:48 console    00:00:00 -
    root    52     1  0 20:02:43       ?    00:00:00 /etc/ifor_pmd
    root    53    52  0 20:02:43       ?    00:00:00 /etc/ifor_pmd
    root    49     1  0 20:02:38       ?    00:00:00 /etc/syslogd
    root    41     1  0 20:02:38       ?    00:00:00 htepi_daemon /stand
    root    77     1  0 20:02:47       ?    00:00:00 strerr
root    93         1 0 20:02:49       ?    00:00:00 /var/scohttp/scohttpd -d/var  
/scohttp
    root    61    53  0 20:02:43       ?    00:00:00 /etc/sco_cpd
    root    62    53  0 20:02:43       ?    00:00:00 /etc/ifor_sld
    root   102    92  2 20:08:48 console   00:00:00 ps -ef
    #_  
多用戶模式下進(jìn)行下列的操作:
# ps –ef &  
     UID   PID  PPID  C    STIME      TTY        TIME CMD
    root     0     0   0   May-20          ?     00:00:00 sched
    root     1     0   0   May-20       ?     00:00:00 /etc/init
    root     2     0   0   May-20       ?     00:00:00 vhand
    root     3     0   0   May-20       ?     00:00:00 bdflush
    root     4     0   0   May-20       ?     00:00:00 kmdaemon
    root     5     1   0   May-20       ?     00:00:00 htepi_daemon /
    root     6     0   0   May-20       ?     00:00:00 strd
    root   496     1   0 20:10:03  tty01    00:00:00 /bin/login root
    root    52     1   0 20:02:43      ?     00:00:00 /etc/ifor_pmd
    root    53    52   0 20:02:43      ?     00:00:00 /etc/ifor_pmd
    root    49     1   0 20:02:38      ?     00:00:00 /etc/syslogd
    root    41     1   0 20:02:38      ?     00:00:00 htepi_daemon /stand
    root    77     1   0 20:02:47      ?     00:00:00 strerr
    root   497     1   0 20:10:03    tty02  00:00:00 /etc/getty tty02 sc_m
    root    61    53   0 20:02:43      ?     00:00:00 /etc/sco_cpd
    root    62    53   0 20:02:43      ?     00:00:00 /etc/ifor_sld
    root   498     1   0 20:10:04    tty03  00:00:00 /etc/getty tty03 sc_m
    root   499     1   0 20:10:04    tty04  00:00:00 /etc/getty tty04 sc_m
    root   469     1   0 20:09:58      ?     00:00:00 /usr/lib/scosh/calserver
    root   295     1   0 20:09:35     ?     00:00:00 rusersd
    root   258     1   0 20:09:33     ?     00:00:00 /etc/cron
    root   285     1   0 20:09:35     ?     00:00:00 portmap
    root   270     1   0 20:09:34     ?     00:00:00 /usr/lib/lpsched
    root   379     1   0 20:09:45      ?     00:00:00 statd
    root   294     1   0 20:09:35      ?     00:00:00 rwalld
    root   500     1   0 20:10:04   tty05   00:00:00 /etc/getty tty05 sc_m
            …
    root   313     1   0 20:09:36      ?     00:00:00 /etc/inetd
    mmdf   348     1   0 20:09:40          ?     00:00:00 /usr/mmdf/bin/deliver -b
    root   374     1   0 20:09:45     ?     00:00:00 biod 4
    root   375     1   0 20:09:45     ?     00:00:00 biod 4
    root   376     1   0 20:09:45          ?     00:00:00 biod 4
    root   377     1   0 20:09:45     ?     00:00:00 biod 4
    root   326     1   0 20:09:36     ?     00:00:00 routed
    root   346     1   0 20:09:38          ?     00:00:00 /etc/snmpd
            …
    root   481     1   0 20:10:03     ?     00:00:00 /usr/lib/scosh/caldaemon
    root   501     1   0 20:10:04    tty06   00:00:00 /etc/getty tty06 sc_m
    root   502     1   0 20:10:04    tty07   00:00:00 /etc/getty tty07 sc_m
    root   503     1   0 20:10:04    tty08   00:00:00 /etc/getty tty08 sc_m
    root   504     1   0 20:10:04    tty09   00:00:00 /etc/getty tty09 sc_m
    root   505     1   0 20:10:04    tty10   00:00:00 /etc/getty tty10 sc_m
    root   506     1   0 20:10:04    tty11   00:00:00 /etc/getty tty11 sc_m
    root   507     1   0 20:10:04    tty12   00:00:00 /etc/getty tty12 sc_m
    root   508     1   0 20:10:04     ?     00:00:00 /tcb/files/no_luid/sdd
    root   533   496   2 20:11:25    tty01   00:00:00 -sh
    root   541   533   4 20:12:35    tty01   00:00:00 ps -ef
    #_
    從上述的運(yùn)行結(jié)果看,讀者可以發(fā)現(xiàn)兩種模式下的系統(tǒng)資源配置是不同的。UNIX 是多用戶、多任務(wù)的操作系統(tǒng),核心是構(gòu)成UNIX 內(nèi)核的程序,但它不能為用戶包攬一切。在任何時(shí)候, 運(yùn)行UNIX系統(tǒng)都處在一個(gè)運(yùn)行級(jí)(run level)上。用戶模式的選擇,就是UNIX系統(tǒng)根據(jù)用戶的選擇來(lái)啟動(dòng)為用戶服務(wù)的有關(guān)進(jìn)程(軟件的配置)。所以,系統(tǒng)運(yùn)行的模式體現(xiàn)著系統(tǒng)的資源配置(關(guān)于進(jìn)程的概念,請(qǐng)讀者參見第7章的相關(guān)章節(jié)的內(nèi)容介紹)。
    ?  在有些情況下,用戶可以讓系統(tǒng)自動(dòng)進(jìn)行啟動(dòng)。如果在一個(gè)指定的時(shí)間內(nèi),比如60秒,用戶沒有對(duì)啟動(dòng)提示作出反應(yīng),系統(tǒng)將自動(dòng)進(jìn)行啟動(dòng)。其缺省的過(guò)程如下:
(1) 從主硬盤裝載缺省核心/stand/unix;
(2) 如果必要的話,清理root文件系統(tǒng);
(3) 啟動(dòng)到多用戶模式;
(4) 停頓30秒以設(shè)置日期和時(shí)間;
(5) 檢查安全性數(shù)據(jù)庫(kù);
(6) 清理并安裝在系統(tǒng)啟動(dòng)時(shí)設(shè)置安裝的內(nèi)容


本文來(lái)自ChinaUnix博客,如果查看原文請(qǐng)點(diǎn):http://blog.chinaunix.net/u/31/showart_503169.html
您需要登錄后才可以回帖 登錄 | 注冊(cè)

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號(hào)-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號(hào):11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報(bào)專區(qū)
中國(guó)互聯(lián)網(wǎng)協(xié)會(huì)會(huì)員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過(guò)ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請(qǐng)注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP