关于我们

质量为本、客户为根、勇于拼搏、务实创新

< 返回新闻公共列表

Ubuntu系统安装sysv-rc-conf设置开机启动教程

发布时间:2022-11-15 12:44:24
1491984010112764.jpg

 Linux系统设置开机启动,一般使用chkconfig命令。但是Ubuntu系统中并不支持chkconfig的安装,在安装的时候提示”E: Package ‘chkconfig’ has no installation candidate”的错误。所以Ubuntu系统不能使用chkconfig命令设置开启启动,而是用sysv-rc-onf命令。安装过程如下:

  第一、安装sysv-rc-conf

  apt-get install sysv-rc-conf -y

  第二、检查开机启动

  sysv-rc-conf

  输入命令,然后可以看到:

image.png

  如果我们移动光标,需要关闭程序则’-‘并确认,开启则’+’或’+’并确认。我们看到括号中的x则表示开启,例如上图中的Sendmail服务在Runlevel 2、3、4、5.均为开机自启动。



/template/Home/8a/PC/Static