- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
Apache 安装步骤
1. 下载apache, /download.cgi 通过这个官方网站,我们可以下到最新的版本。现在版本都是以这样的方式表达的:httpd-*.*.*.tar.gz
2. 例如,你现在去官网下载的就是最新版本:httpd-2.2.9.tar.gz。
3. 好了,下载到你的家目录/root里面。
4. [root@hostlocal~]# ls // 你会看到你下载的httpd-2.2.9.tar.gz.
5. [root@hostlocal~]# tar –zxvf httpd-2.2.9.tar.gz // 解压后为httpd-2.2.9
6. [root@hostlocal~]# mkdir –p /usr/local/apache/ //在这个目录下建立文档,利于管理
7. [root@hostlocal~]# mv /root/httpd-2.2.9 /usr/local/src/ //将安装包放到/src下,利于管理
8. [root@hostlocal~]# cd httpd-2.2.9
9. [root@httpd-2.2.9]#./configure --prefix=/usr/local/apache \ //安装路径
? --enable-shared=max \
? --enable-module=rewirte \
? --enable-module=so
10. [root@httpd-2.2.9]# make //编译
11. [root@httpd-2.2.9]# make install
12. [root@hostlocal~]# service httpd start //开启httpd服务
安装成功后,apache将会安装到/usr/local/web/apache下面。然后在windows主机的IE中输入apache服务器的IP地址。看是否可以访问到。
本文来自CSDN博客,转载请标明出处:/loverwind/archive/2008/10/12/3064356.aspx
将apache安装为系统服务# cp /usr/local/apache/bin/apachectl /etc/rc.d/init.d/httpd然后 vi /etc/rc.d/init.d/httpd 添加(#!/bin/sh下面)# chkconfig: 2345 50 90# description: Activates/Deactivates Apache Web Server最后,运行chkconfig把Apache添加到系统的启动服务组里面:# chkconfig --add httpd# chkconfig httpd on然后再service httpd start# mkdir -p /var/www/html
bash: chkconfig: command not found
时间:2010-11-03 14:46来源: 作者: 点击: 3次
bash: chkconfig: command not found
[root@xuniji ~]# chkconfigbash: chkconfig: command not found[root@xuniji ~]# rpm -aq |grep chkconfigchkconfig--2[root@xuniji ~]# export PATH=/sbin:$PATH[root@xuniji ~]# chkconfigchkconfig version - Copyright (C) 1997-2000 Red Hat, Inc.This may be freely redistributed under the terms of the GNU Public License.
usage:?? chkconfig --list [name]???????? chkconfig --add name???????? chkconfig --del name???????? chkconfig [--level levels] name on|off|reset|resetpriorities
[root@xuniji ~]# echo $PATH/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:
文档评论(0)