fedora 添加httpd服务

在编译安装httpd后,将其放到/etc/init.d/目录下,使其可以随开机自动启动,命令如下
chkconfig –add httpd,执行此命令后报错,提示“service apache does not support chkconfig“,这是因为在httpd中没有相关的chkconfig信息,导致chkconfig不能识别,所以要在httpd中添chkconfig的描述信息。

方法如下
编辑httpd文件。加入chkconfig描述信息:
# description:http apache service
# chkconfig: 2345 98 98
以上信息均为注释信息,前面一定要有#
这时,再次执行chkconfig –add httpd,httpd被成功加入服务,可以随机自动启动了。

您可能感兴趣的文章

  1. fedora 14 apache不能访问 subversion 仓库
  2. fedora 删除旧内核
  3. Fedora 14 安装 NVIDIA 显卡驱
  4. fedora ubuntu 建立多重启动菜单
  5. fedora ssh 访问
  6. fedora 让服务随机启动
  7. 如何关闭SELinux
  8. fedora 安装显卡驱动
  9. fedora13 编译安装 mysql no curses/termcap library found
  10. fedora 安装 zlib库
分享到Twitter 分享到新浪微博 分享到开心 分享到QQ空间 分享到人人 分享到鲜果 分享到豆瓣 分享到网易微博 分享到搜狐微博
You can leave a response, or trackback from your own site.

Leave a Reply

You must be logged in to post a comment.

Powered by WordPress | Find Wireless Deals at BestInCellPhones.com. | Thanks to iCellPhoneDeals.com Free Cell Phones, Find Highest CD Rates and Incinerador De Grasa Revisión