linux开机后apache不能自动启动

来源:百度知道 编辑:UC知道 时间:2024/05/12 06:13:59
linux开机后apache不能自动启动
每次都得手工启动
好麻烦啊
大家知道怎么才能让linux开机后自动启动apache
我再网上查了不少资料
可是试过了都不行
有的是根本就不明白他们说的什么
也不知道怎么操作
你们要是谁知道怎么做
能不能把具体的操作步骤给我写一下
我可是个大菜鸟
可笨了
小的在这里先谢谢了!!

在/etc/init.d增加httpd
/etc/init.d# cat httpd
#!/bin/sh
#
# Copyright 2000-2005 The Apache Software Foundation or its licensors, as
# applicable.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
#
# Apache control script designed to allow an easy command line interface
# to co