ubuntu系统 http服务手动编译安装

ubuntu 10 安装 apache http server 2.4.7 小记

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

2. wget http://archive.apache.org/dist/apr/apr-1.5.0.tar.gz
3. wget http://archive.apache.org/dist/apr/apr-util-1.5.3.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
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值