亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? linux系統(tǒng)的設(shè)定.txt

?? 介紹關(guān)于初學(xué)linux的一些經(jīng)歷和學(xué)習(xí)方面的
?? TXT
字號(hào):
linux系統(tǒng)的設(shè)定



linux系統(tǒng)的設(shè)定


在這□我們先了解整個(gè)linux啟動(dòng)的流程,首先系統(tǒng)核心由lilo
或loadlin程式讀入記憶體,在解壓縮後分別載入各周邊的驅(qū)動(dòng)程
式。必須注意的是,有些驅(qū)動(dòng)程式采自動(dòng)偵測(cè)(auto-probe)的方
式,判斷硬體的設(shè)定情形,如果在核心載入的過(guò)程中,發(fā)現(xiàn)有偵測(cè)
錯(cuò)誤的情況,必須把確實(shí)的硬體設(shè)定參數(shù)由lilo、loadlin在載入
時(shí)傳入核心。

 在核心完成載入後,linux會(huì)執(zhí)行init程式,init程式會(huì)根據(jù)
/etc/inittab的設(shè)定完成系統(tǒng)啟動(dòng)的程序。由於在啟動(dòng)系統(tǒng)時(shí),我
們可能希望進(jìn)入正常的運(yùn)作模式提供對(duì)外服務(wù),或進(jìn)入系統(tǒng)維護(hù)模
式暫時(shí)停止對(duì)外服務(wù),所以除了特殊事件處理外,每一個(gè)項(xiàng)目都指
定run level,通知init這次啟動(dòng)本項(xiàng)目是否要執(zhí)行。接著init監(jiān)督
所有由它啟動(dòng)的程式及停電等系統(tǒng)事件,直到shutdown為止。例如
getty負(fù)責(zé)使用者簽入,而一般getty的action為respawn,表示使用
者離線後,init會(huì)再重新啟動(dòng)getty等待下一個(gè)使用者。


#
# inittab This file describes how the INIT process should set up
# the system in a certain run-level.
#
# Version: @(#)inittab 2.04 17/05/93 MvS
#
# Author: Miquel van Smoorenburg, 
#
# 格式: 
#
# Default runlevel.
#
id:5:initdefault:

#
# System initialization (runs when system boots).
#
si:S:sysinit:/etc/rc.d/rc.S

#
# Script to run when going single user.
#
su:S:wait:/etc/rc.d/rc.K

#
# Script to run when going multi user.
#
rc:123456:wait:/etc/rc.d/rc.M

#
# What to do at the "Three Finger Salute".
#
ca::ctrlaltdel:/sbin/shutdown -t3 -rf now

#
# What to do when power fails (shutdown to single user).
#
pf::powerfail:/sbin/shutdown -f +5 "THE POWER IS FAILING"

#
# If power is back before shutdown, cancel the running shutdown.
#
pg:0123456:powerokwait:/sbin/shutdown -c "THE POWER IS BACK"

#
# If power comes back in single user mode, return to multi user mode.
#
ps:S:powerokwait:/sbin/init 5

#
# The getties in multi user mode on consoles an serial lines.
#
# NOTE NOTE NOTE adjust this to your getty or you will not be
# able to login !!
#
# Note: for 'agetty' you use linespeed, line.
# for 'getty_ps' you use line, linespeed and also use 'gettydefs'
#
c1:12345:respawn:/sbin/getty tty1 38400 console
c2:12345:respawn:/sbin/getty tty2 38400 console
c3:45:respawn:/sbin/getty tty3 38400 console
c4:45:respawn:/sbin/getty tty4 38400 vt100
#c5:45:respawn:/sbin/agetty 38400 tty5
#c6:456:respawn:/sbin/agetty 38400 tty6

#
# Serial lines
#
#s1:45:respawn:/sbin/agetty 19200 ttyS0
#s2:45:respawn:/sbin/agetty 19200 ttyS1

#
# Dialup lines
#
#d1:45:respawn:/sbin/agetty -mt60 38400,19200,9600,2400,1200 ttyS0
#d2:45:respawn:/sbin/mgetty -D -n 5 ttyS1 38400 vt100

#
# Runlevel 6 used to be for an X-window only system, until we discovered
# that it throws init into a loop that keeps your load avg at least 1 all
# the time. Thus, there is now one getty opened on tty6. Hopefully no one
# will notice. ;^)
# It might not be bad to have one text console anyway, in case something
# happens to X.
#
x1:6:wait:/etc/rc.d/rc.6

# End of /etc/inittab

* 上表除中文說(shuō)明外,節(jié)錄自slackware 2.1.0之/etc/inittab


 從inittab可以看到,id:5:initdefault表示在載入核心時(shí)若沒(méi)有
指定runlevel,則以5作為內(nèi)定值。rc.S的action屬於sysinit,會(huì)
在系統(tǒng)啟動(dòng)後首先被執(zhí)行。接著id為rc那一項(xiàng),指定在runlevel為
1~6時(shí)執(zhí)行,屬性為wait表示init會(huì)執(zhí)行rc.M且等待它執(zhí)行完畢。這
兩個(gè)script和系統(tǒng)環(huán)境較密切,我們下面會(huì)作較詳細(xì)的介紹。另外
id為ca那一項(xiàng)定義了按ctrl-alt-del時(shí),執(zhí)行shutdown并立即reboot
。至於id為c1~c6、s1~s2、d1~d2者,指定在那一個(gè)runlevel下,啟
動(dòng)那些終端機(jī),它們的action屬於respawn表示這些程式在結(jié)束後,
init會(huì)再次重新執(zhí)行它們,直到shutdown為止。如果須要更詳細(xì)的
資料,可用man init得到更詳細(xì)的說(shuō)明。


#!/bin/sh
#
# /etc/rc.d/rc.S
#
# These commands are executed at boot time by init(8).
# User customization should go in /etc/rc.local.

PATH=/sbin:/usr/sbin:/bin:/usr/bin

#
# 啟動(dòng)swap系統(tǒng):
#
# 1. mount所有定義在/etc/fstab內(nèi)的swap partition
#
#/sbin/swapon -av
#
# 2. 啟動(dòng)swap file而不是swap partition
#
/sbin/swapon /.Swapfile

#
# Start update.
#
/sbin/update &

#
# Test to see if the root partition is read-only, like it ought to be.
#
# 測(cè)試檔案系統(tǒng)的完整性
#
READWRITE=no
if echo -n >> "Testing filesystem status"; then
rm -f "Testing filesystem status"
READWRITE=yes
fi

#
# Check the integrity of all filesystems
#
if [ ! $READWRITE = yes ]; then
/sbin/fsck -A -a
# If there was a failure, drop into single-user mode.
if [ $? -gt 1 ] ; then
echo
echo
echo "**************************************"
echo "fsck returned error code - REBOOT NOW!"
echo "**************************************"
echo
echo
/bin/login
fi
#
# Remount the root filesystem in read-write mode
#
echo "Remounting root device with read-write enabled."
/sbin/mount -w -n -o remount /
if [ $? -gt 0 ] ; then
echo
echo "Attempt to remount root device as read-write failed! This is going to"
echo "cause serious problems... "
echo
echo "If you're using the UMSDOS filesystem, you **MUST** mount the root
partition"
echo "read-write! You can make sure the root filesystem is getting mounted
"
echo "read-write with the 'rw' flag to Loadlin:"
echo
echo "loadlin vmlinuz root=/dev/hda1 rw (replace /dev/hda1 with your root
device)"
echo
echo "Normal bootdisks can be made to mount a system read-write with the
rdev command:"
echo
echo "rdev -R /dev/fd0 0"
echo
echo "You can also get into your system by using a bootkernel disk with a
command"
echo "like this on the LILO prompt line: (change the root partition name
as needed)"
echo
echo "LILO: mount root=/dev/hda1 rw"
echo
echo "Please press ENTER to continue, then reboot and use one of the above
methods to"
echo -n "get into your machine and start looking for the problem. "
read junk;
fi
else
echo "Testing filesystem status: read-write filesystem"
if [ -d /DOS/linux/etc -a -d /DOS/linux/dev ]; then # no warn for UMSDOS
cat << EOF

*** ERROR: Root partition has already been mounted read-write. Cannot check!

For filesystem checking to work properly, your system must initially mount
the root partition as read only. Please modify your kernel with 'rdev' so that
it does this. If you're booting with LILO, add a line:

read-only

to the Linux section in your /etc/lilo.conf and type 'lilo' to reinstall it.

If you boot from a kernel on a floppy disk, put it in the drive and type:
rdev -R /dev/fd0 1

If you boot from a bootkernel disk, or with Loadlin, you can add the 'ro'
flag.

This will fix the problem *AND* eliminate this annoying message. :^)

EOF
echo -n "Press ENTER to continue. "
read junk;
fi
fi

#
# remove /etc/mtab* so that mount will create it with a root entry
#
/bin/rm -f /etc/mtab* /etc/nologin /var/adm/utmp

#
# Looks like we have to create this.
#
cat /dev/null >> /var/adm/utmp

#
# mount file systems in fstab (and create an entry for /)
# but not NFS because TCP/IP is not yet configured
#
# mount所有定義在/etc/fstab內(nèi)的檔案系統(tǒng),但nfs除外。因?yàn)?# tcp/ip環(huán)境的設(shè)定是在後面rc.M內(nèi)完成。
#

/sbin/mount -avt nonfs

#
# Configure the system clock.
# This can be changed if your system keeps GMT.
#
if [ -x /sbin/clock ]; then
/sbin/clock -s
fi

#
# Setup the /etc/issue and /etc/motd to reflect the current kernel level:
# THESE WIPE ANY CHANGES YOU MAKE TO /ETC/ISSUE AND /ETC/MOTD WITH EACH
# BOOT. COMMENT THEM OUT IF YOU WANT TO MAKE CUSTOM VERSIONS.
#
# 這一段程式會(huì)在每次重新開(kāi)機(jī)時(shí),將/etc/motd、/etc/issue這兩
# 個(gè)檔寫入Slackware的內(nèi)定值。
#
#echo > /etc/issue
#echo Welcome to Linux `/bin/uname -a | /bin/cut -d\ -f3`. >> /etc/issue
#echo >> /etc/issue
#echo "`/bin/uname -a | /bin/cut -d\ -f1,3`. (POSIX)." > /etc/motd

#
# Run serial port setup script:
# (CAREFUL! This can make some systems hang if the rc.serial script isn't
# set up correctly. If this happens, you may have to edit the file from a
# boot disk)
#
# 執(zhí)行設(shè)定serial port的程式
#
/bin/sh /etc/rc.d/rc.serial

# end of /etc/rc.d/rc.S

* 上表除中文說(shuō)明外,節(jié)錄自slackware 2.1.0之/etc/inittab


在內(nèi)定的情形下,我們會(huì)以runlevel 5進(jìn)入系統(tǒng),因此接著執(zhí)行
/etc/rc.d/rc.M。


#!/bin/sh
#
# rc.M This file is executed by init(8) when the system is being
# initialized for one of the "multi user" run levels (i.e.
# levels 1 through 6). It usually does mounting of file
# systems et al.
#
# Version: @(#)/etc/rc.d/rc.M 2.02 02/26/93
#
# Author: Fred N. van Kempen, 
# Heavily modified by Patrick Volkerding

#
#
# Tell the viewers what's going to happen...
#
echo "Going multiuser..."

#
# Screen blanks after 15 minutes idle time.
#
# 設(shè)定在15分鐘內(nèi)沒(méi)有任何動(dòng)作時(shí),自動(dòng)關(guān)閉螢?zāi)伙@示
#
/bin/setterm -blank 15

#
# Start crond (Dillon's crond):
# If you want cron to actually log activity to /var/adm/cron, then change
# -l10 to -l8 to increase the logging level.
#
# 每個(gè)user都可用crontab -e建立一張表格,指定在特定的時(shí)間
 # 執(zhí)行某些程式,這是由下面的程式來(lái)監(jiān)控
#
/usr/sbin/crond -l10 >>/var/adm/cron 2>&1

#
# If there's no /etc/HOSTNAME, fall back on this default:
#
# 如果沒(méi)有設(shè)定主機(jī)名稱,下面這段程式會(huì)填入內(nèi)定值
#
if [ ! -r /etc/HOSTNAME ]; then
echo "darkstar.frop.org" > /etc/HOSTNAME
fi

#
# Initialize the NET subsystem.
#
# 設(shè)定網(wǎng)路系統(tǒng),後面會(huì)再作較詳細(xì)的介紹
#
if [ -x /etc/rc.d/rc.inet1 ];
then
/bin/hostname `cat /etc/HOSTNAME | cut -f1 -d .`
/bin/sh /etc/rc.d/rc.inet1
/bin/sh /etc/rc.d/rc.inet2
else
/sbin/hostname_notcp `cat /etc/HOSTNAME | cut -f1 -d .`
/usr/sbin/syslogd
/usr/sbin/klogd
/usr/sbin/lpd
fi

#
# Remove stale locks (must be done after mount -a!)
#
/bin/rm -f /var/spool/locks/* /var/spool/uucp/LCK..* /tmp/.X*lock 1>
/dev/null 2> /dev/null

#
# Remove stale hunt sockets so the game can start.
#
if [ -r /tmp/hunt -o -r /tmp/hunt.stats ]; then
echo "Removing your stale hunt sockets from /tmp..."
/bin/rm -f /tmp/hunt*
fi

#
# Update all the shared library links automatically
#
/sbin/ldconfig

#
# Start the sendmail daemon:
#
# 啟動(dòng)信件收發(fā)處理程式,每15分鐘處理一次待送信件
#
if [ -x /usr/sbin/sendmail ]; then
echo "Starting mail daemon ( sendmail -bd -q 15m )..."
/usr/sbin/sendmail -bd -q 15m
fi

#
# Load a custom screen font if the user has an rc.font script.
#
# 載入自定的螢?zāi)蛔中?#
if [ -r /etc/rc.d/rc.font ]; then
/etc/rc.d/rc.font
fi

#
# Start the local setup procedure.
#
/etc/rc.d/rc.local

# end of /etc/rc.d/rc.M

* 上表除中文說(shuō)明外,節(jié)錄自slackware 2.1.0之/etc/inittab


 其他系統(tǒng)檔案

 1. /etc/issue

   這個(gè)檔案的內(nèi)容會(huì)在系統(tǒng)顯示login:提示之前出現(xiàn)在使用
   者的virtual console或終端機(jī)上。如果是telnet時(shí),系統(tǒng)
   是顯示/etc/issue.net。

 2. /etc/motd

    即message of today,會(huì)在使用者進(jìn)入shell之前顯示,通
常是放系統(tǒng)的最新通知事項(xiàng)。

 3. /etc/mtools

slackware有一組指令包括mdir,mcopy等,可直接讀取DOS
的磁片、硬碟內(nèi)檔案,這檔內(nèi)必須定義軟碟機(jī)、硬碟機(jī)參
數(shù)。

#
# Parameters for the /usr/bin/mtools utilities
#

A /dev/fd0 12 0 0 0 # Generic autodetect
B /dev/fd1 12 0 0 0 # Generic autodetect

# end of /etc/mtools

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
99久久精品一区二区| 韩国成人福利片在线播放| 久久久久免费观看| 欧美一区二区免费视频| 欧美另类变人与禽xxxxx| 在线中文字幕一区二区| 91美女片黄在线观看91美女| 国产成a人无v码亚洲福利| 国产精品1024| 99精品在线免费| 色婷婷av一区二区三区软件| 色婷婷综合视频在线观看| 欧美午夜精品一区二区蜜桃 | 欧美精品在欧美一区二区少妇| 欧美精品一区二区三区四区| 色又黄又爽网站www久久| 国产一区二区剧情av在线| 激情文学综合网| 国产iv一区二区三区| 成人免费视频网站在线观看| 91亚洲国产成人精品一区二区三 | 国产成人在线视频网址| 大美女一区二区三区| 成人av午夜电影| 欧美日韩一区高清| 精品免费日韩av| 亚洲色图在线视频| 日韩av一区二区三区四区| 国产精品一二三四区| 91在线视频观看| 日韩一区二区影院| 国产精品夫妻自拍| 日本伊人精品一区二区三区观看方式| 麻豆精品在线播放| 成人黄色电影在线 | 久久久精品免费免费| 亚洲丝袜精品丝袜在线| 日本sm残虐另类| www.欧美色图| 精品少妇一区二区三区免费观看| 国产精品久久久久久户外露出| 天天色天天操综合| 成人国产视频在线观看| 欧美一二三区精品| 一区二区国产盗摄色噜噜| 激情五月激情综合网| 欧美午夜电影网| 自拍偷自拍亚洲精品播放| 久久国产综合精品| 欧美日韩一区成人| 亚洲欧美自拍偷拍| 国产乱码精品一区二区三| 欧美三级电影一区| 亚洲欧洲三级电影| 国产精品中文欧美| 日韩视频一区二区在线观看| 一区二区三区欧美久久| 成人性生交大片免费看视频在线| 日韩欧美aaaaaa| 亚洲mv大片欧洲mv大片精品| 99精品国产热久久91蜜凸| 久久日一线二线三线suv| 日本欧美加勒比视频| 欧美视频在线一区| 亚洲一二三四久久| 色狠狠综合天天综合综合| 亚洲自拍欧美精品| 成人av综合在线| 欧美国产丝袜视频| 成人一区在线看| 国产欧美一区二区精品秋霞影院| 久久99久久久久| 日韩精品一区二区三区视频 | 884aa四虎影成人精品一区| 亚洲精品国产a久久久久久| www.激情成人| 中文字幕一区二区三区视频| 成人黄色一级视频| 亚洲女同女同女同女同女同69| 不卡一区二区中文字幕| 亚洲色图欧洲色图| 色悠久久久久综合欧美99| 亚洲人成网站色在线观看| 91亚洲精品一区二区乱码| 亚洲精品成人悠悠色影视| 色久综合一二码| 日韩高清不卡一区二区三区| 538在线一区二区精品国产| 日本 国产 欧美色综合| 精品国产免费一区二区三区香蕉| 国产在线一区观看| 国产精品免费av| 色诱亚洲精品久久久久久| 午夜日韩在线观看| 精品欧美久久久| 成人动漫一区二区| 亚洲综合清纯丝袜自拍| 91精品黄色片免费大全| 国产麻豆午夜三级精品| √…a在线天堂一区| 欧美精品亚洲二区| 国产伦精品一区二区三区免费迷| 国产精品久久久久一区| 91福利资源站| 国产一区二区在线电影| 亚洲精品一二三四区| 日韩三级视频在线看| 99久久99久久免费精品蜜臀| 日韩成人av影视| 中文av字幕一区| 欧美精品久久天天躁| 成人在线视频一区二区| 婷婷夜色潮精品综合在线| 国产欧美日韩久久| 91精品国产麻豆国产自产在线| 床上的激情91.| 美美哒免费高清在线观看视频一区二区| 久久精品一二三| 4438x成人网最大色成网站| 成人av网址在线| 免费在线观看日韩欧美| 亚洲女厕所小便bbb| 精品电影一区二区三区 | 婷婷综合另类小说色区| 国产欧美精品一区aⅴ影院| 欧美日韩一区二区三区在线| 国产成人精品免费看| 日韩精品亚洲专区| 亚洲色图另类专区| 久久久久久久久久美女| 欧美一区二区三区免费视频 | 性欧美疯狂xxxxbbbb| 中文字幕成人网| 精品免费日韩av| 日韩亚洲欧美在线| 欧美日韩在线播放三区四区| 不卡视频在线观看| 国产 日韩 欧美大片| 久久99久久久久| 奇米888四色在线精品| 午夜精品久久久久影视| 一区二区三区日韩欧美精品| 日韩一区在线看| 国产精品灌醉下药二区| 国产三级一区二区| 国产欧美日韩中文久久| 26uuu成人网一区二区三区| 欧美成人性战久久| 欧美成人女星排行榜| 欧美v日韩v国产v| 精品美女一区二区三区| 日韩欧美的一区二区| 精品免费视频.| 亚洲精品一区二区三区蜜桃下载| 日韩欧美一级二级| 精品国产露脸精彩对白 | 中文字幕精品三区| 国产欧美日韩视频一区二区 | 色综合久久综合中文综合网| 99久久久久久99| 91国偷自产一区二区三区成为亚洲经典 | 亚洲免费三区一区二区| 一二三四区精品视频| 五月综合激情网| 午夜精彩视频在线观看不卡| 日韩va亚洲va欧美va久久| 麻豆91精品91久久久的内涵| 国产麻豆视频一区| 波多野结衣一区二区三区| 91免费视频网| 91精品国产福利在线观看 | 国产午夜亚洲精品理论片色戒| 久久精品人人做人人爽人人| 国产精品护士白丝一区av| 亚洲综合激情网| 毛片一区二区三区| 成人免费精品视频| 色综合一区二区三区| 欧美另类变人与禽xxxxx| 久久九九国产精品| 一区二区成人在线视频| 另类综合日韩欧美亚洲| 成人精品一区二区三区四区 | 国产乱色国产精品免费视频| www.色综合.com| 欧美一区二区三区在线| 国产精品麻豆久久久| 亚洲成av人影院在线观看网| 国产在线精品国自产拍免费| 91一区一区三区| 精品福利av导航| 亚洲国产你懂的| 粉嫩蜜臀av国产精品网站| 欧美日本不卡视频| 中日韩免费视频中文字幕| 免费av网站大全久久| 91网站视频在线观看| 欧美精品一区二区三| 亚洲bdsm女犯bdsm网站| 不卡一区二区三区四区|