init s与init 1的区别

shc7478 2008-07-19 10:41:26
solaris 运行级别有几种?
init s与init 1有什么区别?
...全文
668 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
shc7478 2008-07-21
  • 打赏
  • 举报
回复
init 1:系统管理维护模式,只允许root登录,执行rc1脚本及rc1.d目录中的脚本。
init S:单用户模式,但也只允许root登录,切换到该级别时不执行脚本,也就意味着进入该级别前的服务在该级别中仍是存在的。它只是关闭了其他终端。

没想到网上讨论的这么多,竟然没有一个人能回答出这个问题。我觉得很可悲。
学什么都要精,不在于多。
hotsolaris 2008-07-20
  • 打赏
  • 举报
回复
你是想进入single user模式吗?

可以在/boot/grub/menu.lst中改,在kernel参数后加上-s。
huyongzs 2008-07-20
  • 打赏
  • 举报
回复
这里也有相关解释:
Ubuntu Linux系统的启动过程
http://tech.ddvip.com/2008-01/120060456240634.html
huyongzs 2008-07-20
  • 打赏
  • 举报
回复
怎么没有init S
我的ubuntu就有!

$ cd /etc/rc
rc0.d/ rc1.d/ rc2.d/ rc3.d/ rc4.d/ rc5.d/ rc6.d/ rcS.d/

$ uname -a
Linux linux-player03 2.6.24-19-generic #1 SMP Fri Jul 11 23:41:49 UTC 2008 i686 GNU/Linux

看看/etc/rcS.d/README这个文件里边提供init S的相关简单解释:


The scripts in this directory whose names begin with an 'S' are executed
once when booting the system, even when booting directly into single user(single user不就是init 1??)
mode.

The scripts are all symbolic links whose targets are located in
/etc/init.d/ .

To disable a script in this directory, rename it so that it begins with
a 'K'.

For a more information see /etc/init.d/README.
zhaoao 2008-07-20
  • 打赏
  • 举报
回复
二楼的学习了
wlabing 2008-07-20
  • 打赏
  • 举报
回复
没见过有init s的.
mmaicow 2008-07-20
  • 打赏
  • 举报
回复
一般是3或者是5,没有S
guirenwang 2008-07-19
  • 打赏
  • 举报
回复
init s 还是init 5?
印象好像init后面只是些数字

  # 0 - 停机(千万不能把initdefault 设置为0 )

  # 1 - 单用户模式

  # 2 - 多用户,没有 NFS

  # 3 - 完全多用户模式(标准的运行级)

  # 4 - 没有用到

  # 5 - X11 (xwindow)

  # 6 - 重新启动 (千万不要把initdefault 设置为6 )

1,543

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 Solaris
社区管理员
  • Solaris
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧