linux 常用命令

來源:互聯網
上載者:User

標籤:alt   use   roo   遠程   文字   form   運行層級   表示   style   

1,linux 啟動層級

Linux系統有7個運行層級(runlevel)
運行層級0:系統停機狀態,系統預設運行層級不能設為0,否則不能正常啟動
運行層級1:單使用者工作狀態,root許可權,用於系統維護,禁止遠程登陸
運行層級2:多使用者狀態(沒有NFS)
運行層級3:完全的多使用者狀態(有NFS),登陸後進入控制台命令列模式
運行層級4:系統未使用,保留
運行層級5:X11控制台,登陸後進入圖形GUI模式
運行層級6:系統正常關閉並重啟,預設運行層級不能設為6,否則不能正常啟動

運行層級的原理:
1。在目錄/etc/rc.d/init.d下有許多伺服器指令碼程式,一般稱為服務(service)

[[email protected] init.d]# more /etc/inittab
# inittab is only used by upstart for the default runlevel.
#
# ADDING OTHER CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
#
# System initialization is started by /etc/init/rcS.conf
#
# Individual runlevels are started by /etc/init/rc.conf
#
# Ctrl-Alt-Delete is handled by /etc/init/control-alt-delete.conf
#
# Terminal gettys are handled by /etc/init/tty.conf and /etc/init/serial.conf,
# with configuration in /etc/sysconfig/init.
#
# For information on how to write upstart event handlers, or how
# upstart works, see init(5), init(8), and initctl(8).
#
# Default runlevel. The runlevels used are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
#
id:3:initdefault:

 

其中 id:3:initdefault: 表示從文字介面啟動,id:5:initdefault: 表示從圖形介面啟動

 

linux 常用命令

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.