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

来源:互联网 发布:网络打印app 编辑:程序博客网 时间:2024/04/30 16:48

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

sudo chkconfigcommand 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

sudo sysv-rc-conf

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