在RHEL平台中使用chkconfig来管理service的开机启动:
chkconfig --add <service>
chkconfig --level 345 <service> on
chkconfig --del <service>
Ubuntu中,与chkconfig等价的是update-rc.d:
update-rc.d <service> defaults
update-rc.d <service> start 20 3 4 5
update-rc.d -f <service> remove