首页 帮助中心 新加坡云服务器 Ubuntu系统安装sysv-rc-conf设置开机启动教程
Ubuntu系统安装sysv-rc-conf设置开机启动教程
时间 : 2022-11-15 09:58:26 编辑 : 华纳云 阅读量 : 374

  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

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

https://www.hncloud.com/uploads/UEditorImages/202211/15/db1009d7f365fd6c45fcbbf976794485.jpg

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

华纳云 推荐文章
Ubuntu系统上生成SSH密钥的步骤 Ubuntu系统下Apache日志轮转如何设置 盘点老旧Ubuntu系统加速技巧 Ubuntu系统中删除PPA存储库的操作方法 Ubuntu系统管理apt-get命令精选 服务器Ubuntu系统安装git时会提示错误? Ubuntu系统中删除有问题PPA存储库 Ubuntu系统安装垃圾清理工具 BleachBit详细步骤 Ubuntu系统中ntpd服务启动失败的原因 Ubuntu系统怎么安装搜狗输入法
活动
客服咨询
7*24小时技术支持
技术支持
渠道支持