ubuntu deepin 使用chkconfig sysv-rc-conf 命令来管理服务

ubuntu deepin 使用chkconfig sysv-rc-conf 命令来管理服务 添加开机启动

sudo chkconfig
command not found: chkconfig   //chkconfig 已弃用 

建议使用 sysv-rc-conf
安装sysv-rc-conf

sudo apt-get install sysv-rc-conf

直接加入启动程序,例如把 /etc/init.d/nginx 加入到系统自动 启动列表中:

sudo sysv-rc-conf nginx on   //开启
sudo sysv-rc-conf nginx off  //关闭

直接使用 sysv-rc-conf 来管理

sudo sysv-rc-conf

ubuntu deepin 使用chkconfig sysv-rc-conf 命令来管理服务_第1张图片

使用空格键可以在on和off之间切换
+号可以启动服务
-号可以停止服务
ctrl + n 翻到下一页
ctrl + p 翻到上一页
h可以查看帮助
q退出

你可能感兴趣的:(deepin,ubuntu,linux)