#!/bin/bash

#chkconfig: 345 85 15

#description:httpd

然后保存,执行。

chkconfig httpd –add 创建系统服务

现在就可以使用service 来 start or restart