Java代码
sudo apt-get install sysv-rc-conf
sysv-rc-conf是一个强大的服务管理程序,群众的意见是sysv-rc-conf比chkconfig好用。
运行:#sudo sysv-rc-conf
也可以直接加入启动程序,例如把 /etc/init.d/red5 加入到系统自动 启动列表中:
#sudo sysv-rc-conf red5 on
其他使用方法见: google::Ubuntu::sysv-rc-conf 命令用法
也可以直接修改
直接改 /etc/rc0.d ~ /etc/rc6.d 和 /etc/rcS.d 下的东西,S开头的表示启动,K开头的表示不启动,
例如:想关闭 Red5 的开机 自动启动,只需 #sudo mv /etc/rc2.d/S20red5 /etc/rc2.d/K20red5
sudo apt-get install sysv-rc-conf
sysv-rc-conf是一个强大的服务管理程序,群众的意见是sysv-rc-conf比chkconfig好用。
运行:#sudo sysv-rc-conf
也可以直接加入启动程序,例如把 /etc/init.d/red5 加入到系统自动 启动列表中:
#sudo sysv-rc-conf red5 on
其他使用方法见: google::Ubuntu::sysv-rc-conf 命令用法
也可以直接修改
直接改 /etc/rc0.d ~ /etc/rc6.d 和 /etc/rcS.d 下的东西,S开头的表示启动,K开头的表示不启动,
例如:想关闭 Red5 的开机 自动启动,只需 #sudo mv /etc/rc2.d/S20red5 /etc/rc2.d/K20red5
本文介绍如何利用sysv-rc-conf工具在Ubuntu系统中管理服务启动配置,包括将服务设置为开机自动启动的方法及手动调整服务启动状态的具体步骤。
1万+

被折叠的 条评论
为什么被折叠?



