单选题如果想在Linux下实现热启,应当修改/etc/inittab下的哪一行()。A #TrapCTRL-ALT-DELETEB ca::ctrlaltdel:/sbin/shutdown-t3-rnowC id:3:initdefault:D 10:3:wait:/etc/rC.d/rc3

题目
单选题
如果想在Linux下实现热启,应当修改/etc/inittab下的哪一行()。
A

#TrapCTRL-ALT-DELETE

B

ca::ctrlaltdel:/sbin/shutdown-t3-rnow

C

id:3:initdefault:

D

10:3:wait:/etc/rC.d/rc3


相似考题

2.阅读以下说明,回答问题1至问题8。[说明]Linux 系统开机引导时首先启动内核,由内核检查和初始化硬件设备,载入设备的驱动程序模块,安装root文件系统,然后内核将启动一个名为init的进程。在init运行完成并启动其他必要的后续进程后,系统开始运行,引导过程结束。init进程启动时需要读取inittab配置文件,该文件确定init在系统启动和关机时的工作特性。典型的inittab文件内容见以下清单:inittab This file describes how the INIT process should set upthe system in a certain nm-level.Default nmlevel. The nmlevels used by RHS are:0 - halt (Do NOT set initdefault to this )1 - Single user mode2-Multiuser, without NFS (The same as 3, if you do not have networking)3 - Full multiuser mode4 - unused5-Xll6 - reboot (Do NOT set initdefault to this )id:5:initdefault:System initialization.si::sysinit:/etc/rc.d/rc.sysinit10:0:wait:/etc/rc.d/rc 011:1:wait:/ete/rc.d/rc 112:2:wait:/etc/rc.d/rc 213:3:wait:/etc/rc,d/rc 314:4:wait:/etc/rc.d/rc 415:5:wait:/etc/rc.d/rc 516:6:wait:/etc/rc.d/rc 6Trap CTRL-ALT-DELETEea::ctrlaltdel:/sbin/shutdown -t3 -r nowWhen our UPS tells us power has failed, assume we have a few minutesof power left. Schedule a shutdown for 2 minutes from now.This does, of course, assume you have powerd installed and yourUPS connected and working correctly.pf::power fail:/sbin/shutdown -f-h +2 "Power Failure: System Shutting Down"If power was restored before the shutdown kicked in, cancel it.pr: 12345:powerokwait:/sbin/shutdown-c "Power Restored; Shutdown Cancelled"Run gettys in standard rtmlevels1:2345 :respawn:/sbin/mingetty tty12:2345:respawn:/sbin/mingetty try23:2345 :respawn:/sbin/mingetty try34:2345:respawn:/sbin/mingetty tty45:2345:respawn:/sbin/mingetty tty56:2345 :respawn:/sbin/mingetty tty6Run xdm in runlevel 5x:5:respawn:/etc/X 11/prefdm -nodaemon启动init进程前,不需要经过______步骤。A.LIIO加载内核 B.检测内存C.加载文件系统 D.启动网络支持

更多“单选题如果想在Linux下实现热启,应当修改/etc/inittab下的哪一行()。A #TrapCTRL-ALT-DELETEB ca::ctrlaltdel:/sbin/shutdown-t3-rnowC id:3:initdefault:D 10:3:wait:/etc/rC.d/rc3”相关问题
  • 第1题:

    ASystempadministratorhasjustconfiguredloggingsystemmessageswiththesyslogddaemon.Atboottimewhichfilestartsthesyslogdaemon()

    A./etc/rc.tcpip

    B./sbin/rc.boot

    C./etc/rc.net

    D./etc/rc.d


    参考答案:A

  • 第2题:

    阅读以下说明,回答问题1至问题8,将解答填入答题纸对应的解答栏内。

    【说明】

    Linux系统开机引导时首先启动内核,由内核检查和初始化硬件设备,载入设备的驱动程序模块,安装root文件系统,然后内核将启动一个名为init的进程。在init运行完成并启动其它必要的后续进程后,系统开始运行,引导过程结束。init进程启动时需要读取inittab配置文件,该文件确定init在系统启动和关机时的工作特性。典型的inittab文件内容见以下清单:

    #

    # inittab This file describes how the INIT process should set up

    # the system in a certain run-level.

    #

    # Default runlevel. The runlevels used by RIdS are:

    # 0 - halt (Do NOT set initdefault to this)

    # 1 - Single user mode

    # 2 - Multiuser, without NFS (The same as 3, ifyou do not have networking)

    # 3 - Full multiuser mode

    # 4 - unused

    # 5 -X11

    # 6 - reboot (Do NOT set initdefault to this)

    #

    id:5:initdefault:

    # System initialization.

    si::sysinit:/et~/rc.d/rc.sysinit

    10:0:wait:/etc/rc.d/rc 0

    11:1 :wait:/etc/rc.d/rc 1

    12:2:wait:/etc/rc.d/rc 2

    13:3 :wait'/ete/rc.d/re 3

    14:4:wait:/etc/rc.d/rc 4

    15:5:wait:/etc/rc.d/rc 5

    16:6:wait:/et~/rc.d/rc 6

    # Trap CTRL-ALT-DELETE

    ca::ctrlaltdel:/sbin/shutdown -t3 -r now

    # When our UPS tells us power has failed, assume we have a few minutes

    # of power left. Schedule a shutdown for 2 minutes from now.

    # This does, of course, assume you have powerd installed and your

    # UPS connected and working correctly.

    pf::poweffail:/sbin/shutdown -f-h +2 "Power Failure System Shutting Down"

    # If power Was restored before the shutdoWn kicked in, cancel it.

    pr: 12345:powerokwait:/sbin/shutdown-c "Power Restored; Shutdown Cancelled"

    # Run gettys in standard mnlevels

    1:2345:respawn:/sbin/mingetty tty 1

    2:2345:respawn:/sbin/mingetty tty2

    3:2345 :respawn:/sbin/mingetty tty3

    4:2345:respawn:/sbin/mingetty try4

    5:2345:respawn:/sbin/mingetty try5

    6:2345:respawn:/sbin/mingetty try6

    # Run xdm in runlevel 5

    x:5 :respawn:/etc/X11/prefdm -nodaemon

    【问题1】(2分)

    启动init进程前,不需要经过___(1)___步骤。

    A.LILO加载内核 B.检测内存 C.加载文件系统 D.启动网络支持

    【问题2】(2分)

    inittab文件存放在___(2)___目录中。

    A./etc B./boot C./sbin D./root

    【问题3】(2分)

    Linix系统运行级别3 工作在___(3)___状态。

    A.单用户字符模式 B.多用户字符模式

    C.单用户图形模式 D.多用户图形模式

    【问题4】(2分)

    根据说明中inittab文件的内容,系统引导成功后,工作在___(4)___状态。

    A.单用户字符模式 B.多用户字符模式

    C.单用户图形模式 D.多用户图形模式

    【问题5】(2分)

    在系统控制台,___(5)___用Ctrl+Alt+Delete组合键来重新引导服务器。

    A.允许 B.不允许

    【问题6】(2分)

    假设root用户执行“init0”命令,系统将会___(6)___。

    A.暂停 B.关机 C.重新启动 D.初始化

    【问题7】(2分)

    root用户执行“psauxlgrepinit”’命令,得到init的PID是___(7)___。

    A.0 B.1 C.2 D.3

    【问题8】(1分)

    根据上述inittab文件的内容,系统在引导过程结束前,至少还要执行___(8)___进程。

    A. rc.sysinit

    B. rc.sysinit 和 rc 5

    C. rc.sysinit, rc0, rcl, rc2, rc3, re4, rc5和qlrc6

    D. rc0, rcl, rc2, rc3, rc4, rc5和glrc6


    正确答案:
    [问题1](1)D
    [问题2](2)A
    [问题3](3)B
    [问题4](4)D
    [问题5](5)A
    [问题6](6)B
    [问题7](7)B
    [问题8](8)B

  • 第3题:

    在Linux中提供DHCP服务的程序是( ).

    A./etc/networks/dhcpd
    B./usr/sbin/dhcp
    C./etc/networks/dhcp
    D./usr/sbin/dhcpd

    答案:D
    解析:
    /usr/sbin/dhcpd 是Linux上执行DHCP服务的程序,/etc/dhcpd.conf是dhcpd最关键的配置文件。通过设置/etc/dhcpd.conf文件,可以设置租用时间限制、子网相关信息以及域名等,将主机的MAC地址和IP地址绑定在一起。

  • 第4题:

    Linux系统下,为了使得Control+Alt+Del关机键无效,需要注释掉下列的行:ca::ctrlaltdel:/sbin/shutdown–t3–rnow。该行是包含于下面哪个配置文件的()。

    • A、/etc/rc.d/rc.local
    • B、/etc/lilo.conf
    • C、/etc/inittab
    • D、/etc/inetconf

    正确答案:C

  • 第5题:

    在linux系统中,要设置本机计算机名,并在系统重启后无须重新配置,应修改()文件。

    • A、/etc/sysconfig/network
    • B、/etc/sbin/hostname
    • C、/etc/sysconfig/network-scripts/ifcfg-eth0
    • D、/etc/resolv.conf

    正确答案:A

  • 第6题:

    在Linux系统中,提供DHCP服务的程序是()。

    • A、/etc/networks/dhcpd
    • B、/usr/sbin/dhcp
    • C、/etc/networks/dhcp
    • D、/usr/sbin/dhcpd

    正确答案:B

  • 第7题:

    The system hangs at boot time after starting NFS services.What is the most likely cause?()

    • A、The action parameter of rcnfs in /etc/inittab is 'off' and the script called is not exiting.
    • B、The action parameter of rcnfs in /etc/inittab is 'wait' and the script called is not exiting.
    • C、The action parameter of rcnfs in /etc/inittab is 'once' and the script called is not exiting.
    • D、The action parameter of rcnfs in /etc/inittab is 'respawn' and the script called is not exiting.

    正确答案:B

  • 第8题:

    如果想在Linux下实现热启,应当修改/etc/inittab下的哪一行()。

    • A、#TrapCTRL-ALT-DELETE
    • B、ca::ctrlaltdel:/sbin/shutdown-t3-rnow
    • C、id:3:initdefault:
    • D、10:3:wait:/etc/rC.d/rc3

    正确答案:B

  • 第9题:

    单选题
    如果想在Linux下实现热启,应当修改/etc/inittab下的哪一行()。
    A

    #TrapCTRL-ALT-DELETE

    B

    ca::ctrlaltdel:/sbin/shutdown-t3-rnow

    C

    id:3:initdefault:

    D

    10:3:wait:/etc/rC.d/rc3


    正确答案: A
    解析: 暂无解析

  • 第10题:

    单选题
    The system hangs at boot time after starting NFS services.What is the most likely cause?()
    A

    The action parameter of rcnfs in /etc/inittab is 'off' and the script called is not exiting.

    B

    The action parameter of rcnfs in /etc/inittab is 'wait' and the script called is not exiting.

    C

    The action parameter of rcnfs in /etc/inittab is 'once' and the script called is not exiting.

    D

    The action parameter of rcnfs in /etc/inittab is 'respawn' and the script called is not exiting.


    正确答案: A
    解析: 暂无解析

  • 第11题:

    单选题
    下列文件中不是Linux下的网络配置文件的是()。
    A

    /etc/ hosts

    B

    /etc/ sysconfig/ network

    C

    /etc/ sysconfig/ network-scripts/ ifcfg-eth0

    D

    /etc/ rc.d/init.d/ network


    正确答案: A
    解析: 暂无解析

  • 第12题:

    单选题
    The system hangs at boot time after starting NFS services. What is the most likely cause?()
    A

    The action parameter of rcnfs in /etc/inittab is ’off’ and the script called is not exiting.

    B

    The action parameter of rcnfs in /etc/inittab is ’wait’ and the script called is not exiting.

    C

    The action parameter of rcnfs in /etc/inittab is ’once’ and the script called is not exiting.

    D

    The action parameter of rcnfs in /etc/inittab is ’respawn’ and the script called is not exiting


    正确答案: A
    解析: 暂无解析

  • 第13题:

    ● 为保证在启动 Linux 服务器时自动启动 DHCP 进程,应在 (34) 文件中将配置项dhcpd=no改为dhcpd=yes。

    (34)

    A. /etc/rc.d/rc.inet1

    B. /etc/rc.d/rc.inet2

    C. /etc/dhcpd.conf

    D. /etc/rc.d/rc.s


    正确答案:A

  • 第14题:

    在Linux环境下,编辑哪个文件可以设置默认的运行级别?

    A. /etc/grub.conf

    B./etc/lilo.conf

    C./etc/runlevel

    D. /etc/inittab


    正确答案:B

  • 第15题:

    为保证在启动Linux服务器时自动启动DHCP进程,应在( )文件中将配置项dhcpd=no改为dhcpd=yes。

    A./etc/rc.d/rc.inet1
    B./etc/rc.d/rc.inet2
    C./etc/dhcpd.conf
    D./etc/rc.d/rc.s

    答案:A
    解析:
    etc/rc.d/rc.inetd为网络超级守护进程,/etc/rc.d/rc.inet1是其配置文件。

  • 第16题:

    下列文件中不是Linux下的网络配置文件的是()。

    • A、/etc/ hosts
    • B、/etc/ sysconfig/ network
    • C、/etc/ sysconfig/ network-scripts/ ifcfg-eth0
    • D、/etc/ rc.d/init.d/ network

    正确答案:D

  • 第17题:

    下列哪一个目录下存储的脚本用来在重起系统时被init进程执行?()

    • A、/etc/rC.d/rc0.d
    • B、/etc/rC.d/rc1.d
    • C、/etc/rC.d/rc3.d
    • D、D./etc/rd/rc6.d

    正确答案:D

  • 第18题:

    Linux系统的帐号文件由哪些组成()。

    • A、/etc/passwd
    • B、/etc/group
    • C、/etc/shadow
    • D、/etc/inittab

    正确答案:A,B

  • 第19题:

    The system hangs at boot time after starting NFS services. What is the most likely cause?() 

    • A、The action parameter of rcnfs in /etc/inittab is ’off’ and the script called is not exiting.
    • B、The action parameter of rcnfs in /etc/inittab is ’wait’ and the script called is not exiting.
    • C、The action parameter of rcnfs in /etc/inittab is ’once’ and the script called is not exiting.
    • D、The action parameter of rcnfs in /etc/inittab is ’respawn’ and the script called is not exiting

    正确答案:B

  • 第20题:

    Linux启动的第一个进程init启动的第一个脚本程序是()。

    • A、/etc/rC.d/init.d
    • B、/etc/rC.d/rC.sysinit
    • C、/etc/rC.d/rc5.d
    • D、D./etc/rd/rc3.d

    正确答案:B

  • 第21题:

    单选题
    Linux启动的第一个进程init启动的第一个脚本程序是()。
    A

    /etc/rC.d/init.d

    B

    /etc/rC.d/rC.sysinit

    C

    /etc/rC.d/rc5.d

    D

    D./etc/rd/rc3.d


    正确答案: B
    解析: 暂无解析

  • 第22题:

    单选题
    下列哪一个目录下存储的脚本用来在重起系统时被init进程执行?()
    A

    /etc/rC.d/rc0.d

    B

    /etc/rC.d/rc1.d

    C

    /etc/rC.d/rc3.d

    D

    D./etc/rd/rc6.d


    正确答案: B
    解析: 暂无解析

  • 第23题:

    单选题
    在linux系统中,要设置本机计算机名,并在系统重启后无须重新配置,应修改()文件。
    A

    /etc/sysconfig/network

    B

    /etc/sbin/hostname

    C

    /etc/sysconfig/network-scripts/ifcfg-eth0

    D

    /etc/resolv.conf


    正确答案: B
    解析: 暂无解析

  • 第24题:

    单选题
    A System p administrator has just configured logging system messages with the syslogd daemon.  At boot time which file starts the syslog daemon()
    A

    /etc/rc.tcpip

    B

    /sbin/rc.boot

    C

    /etc/rc.net

    D

    /etc/rc.d


    正确答案: C
    解析: 暂无解析