第一讲:CentOS 7 编译安装httpd-2.4

来源:互联网 发布:淘宝照片木刻画 编辑:程序博客网 时间:2024/06/11 12:14

1. 环境:CentOS 7 + httpd-2.4 

2. 下载地址:

1. CentOS 7:http://mirrors.aliyun.com/

2. httpd-2.4 :链接: https://pan.baidu.com/s/1jIMIXmA 密码: skxi

3. 安装步骤:

    # tar xvf httpd-2.4.26.tar.bz2
    # cd httpd-2.4.26
    # ./configure --prefix=/usr/local/apache --sysconf=/etc/httpd24 --enable-so --enable-ssl --enable-cgi --enable-rewrite --with-zlib --with-pcre --enable-apr=apr --enable-apr-util=apr-util --enable-modules=most --enable-mpms-shared=all --with-mpm=prefork
    # make && make install

4. 测试:

启动程序(/usr/local/apache/bin/apachectl start),访问你的服务器IP就可以了。


注:如果出现下面类似的报错,请根据提示安装相应的软件包就可以了。

configure: error:  APR-util  not found.  Please read the documentation.

这里安装一个apr-util-devel软件包就可以了

原创粉丝点击