码迷,mamicode.com
首页 > Web开发 > 详细

Apache安装教程

时间:2016-01-21 15:56:08      阅读:135      评论:0      收藏:0      [点我收藏+]

标签:编译器   朋友   local   

安装apache (httpd-2.0.59.tar.gz)

        cp httpd-2.0.59.tar.gz /home
        cd /home
        tar zxf httpd-2.0.59.tar.gz
        cd httpd-2.0.59
        ./configure --prefix=/usr/local/apache --enable-so --enable-rewrite --enable-mods-shared=most
        说明: 
        --enable-so选项:让Apache可以支持DSO模式,注意,这里采用的是Apache2.0的语法。如果你的Apache是1.3版本,应改为--enable-module=so。 
        --enable-mods-shared=most选项:告诉编译器将所有标准模块都编译为DSO模块。你要是用的是Apache1.3,改为--enable-shared=max就可以。 
        --enable-rewrite选项:支持地址重写功能,使用1.3版本的朋友请将它改为--enable-module=rewrite。
        make
        make install
        apachectl start 启动apache 完整的命令为:/usr/local/apache/bin/apachectl start
        现在测试一下,http://IP ,你会看到apache的默认界面

本文出自 “welcome” 博客,请务必保留此出处http://wjpingok.blog.51cto.com/5374697/1737120

Apache安装教程

标签:编译器   朋友   local   

原文地址:http://wjpingok.blog.51cto.com/5374697/1737120

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!