个人工具

“启动”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
(以内容'==init== ==/etc/rc2.d== ==update-rc.d== ==rcconf== <pre>sudo apt-get install rcconf</pre> <pre>sudo rcconf</pre> Category:系统'创建新页面)
 
update-rc.d
第2行: 第2行:
 
==/etc/rc2.d==
 
==/etc/rc2.d==
 
==update-rc.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==
 
==rcconf==
 
<pre>sudo apt-get install rcconf</pre>
 
<pre>sudo apt-get install rcconf</pre>

2010年8月1日 (日) 18:09的版本

init

/etc/rc2.d

update-rc.d

添加启动项,例如mysql

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

删除启动项

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

rcconf

sudo apt-get install rcconf
sudo rcconf