在Ubuntu服务器上添加服务启动

我需要将服务添加到我的服务器上的启动。 我怎么做?

update-rc.d servicename默认值

另请参阅如何使用update-rc.dpipe理服务

chkconfig [–level levels]服务

chkconfig –level 3,5 httpd

编辑:如果您不指定运行级别服务将运行在所有运行级别

即chkconfig httpd上