个人工具
登录
查看“启动”的源代码 - Ubuntu中文
页面
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“启动”的源代码
来自Ubuntu中文
←
启动
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
Ubuntu 系统的启动流程、增/删启动项 ==init== Linux 内核启动 init ,init进程ID是1。 ==runlevel== 查看当前的运行级别,Ubuntu 桌面默认是2。 <pre>runlevel</pre> ==sysv-rc-conf == 查看/修改不同运行级别的启动项,可以发现Ubuntu(其实是Debian)2-5之间的runlevel效果是一样的。 <pre>sudo apt-get install sysv-rc-conf </pre> <pre>sudo sysv-rc-conf </pre> ==/etc/rc2.d== ==update-rc.d== 添加启动项,例如mysql <pre>qii@ubuntu:/etc/rc2.d$ sudo update-rc.d mysql defaults update-rc.d: warning: /etc/init.d/mysql missing LSB information update-rc.d: see <http://wiki.debian.org/LSBInitScripts> Adding system startup for /etc/init.d/mysql ... /etc/rc0.d/K20mysql -> ../init.d/mysql /etc/rc1.d/K20mysql -> ../init.d/mysql /etc/rc6.d/K20mysql -> ../init.d/mysql /etc/rc2.d/S20mysql -> ../init.d/mysql /etc/rc3.d/S20mysql -> ../init.d/mysql /etc/rc4.d/S20mysql -> ../init.d/mysql /etc/rc5.d/S20mysql -> ../init.d/mysql </pre> 删除启动项 <pre>qii@ubuntu:/etc/rc2.d$ sudo update-rc.d -f mysql remove Removing any system startup links for /etc/init.d/mysql ... /etc/rc0.d/K20mysql /etc/rc1.d/K20mysql /etc/rc2.d/S20mysql /etc/rc3.d/S20mysql /etc/rc4.d/S20mysql /etc/rc5.d/S20mysql /etc/rc6.d/K20mysql </pre> ==rcconf== 查看,修改当前运行级别的启动项 <pre>sudo apt-get install rcconf</pre> <pre>sudo rcconf</pre> [[Category:系统]]
返回至
启动
。