`
liuyupy
  • 浏览: 6806 次
  • 性别: Icon_minigender_1
  • 来自: 武汉
社区版块
存档分类
最新评论

ubuntu 10 安装 apache http server 2.4.7 小记

阅读更多

1. wget http://archive.apache.org/dist/httpd/httpd-2.4.7.tar.gz 

4. wget pcre-8.33.tar.gz
5. apt-get install build-essential
6. tar -zxvf *.tar.gz
7. 安装 apr-1.5.0
    1) cd apr-1.5.0
    2) ./configure --prefix=/usr/local/apr
    3) make  -> sudo make install
8. 安装 apr-util-1.5.3
    1) cd ../apr-util-1.5.3
    2) ./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr
    3) make -> sudo make install
9. 安装pcre , 同apr-1.5.0
10. 安装apache
    1) cd ../httpd2.4.7
    2) ./configure --prefix=/usr/local/apache2.4.7 --with-apr=* --with-apr-util=* --with-pcre=* ...otherparams
    3) make
    4) sudo make install
11. 配置

    1) cd /usr/local/apache2.4.7/conf

    2) sudo cp httpd.conf httpd.conf.bak
    3) sudo vi httpd.conf  添加 ServerName 127.0.0.1:80
12. 验证
    1) cd /usr/local/apache2.4.7/bin
    2) sudo ./apachectl -k start
    3) 访问 http://localhost  it works
    4) sudo ./apachectl -k stop
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics