分享web开发知识

注册/登录|最近发布|今日推荐

主页 IT知识网页技术软件开发前端开发代码编程运营维护技术分享教程案例
当前位置:首页 > 运营维护

在centos6中安装2.4版本的HTTPd

发布时间:2023-09-06 01:18责任编辑:苏小强关键词:暂无标签

      由于httpd2.4版本是基于APR -1.4版本以上的,但centos6中的apr版本是1.3的,所以要想在centos6中安装httpd2.4版本,要先编译安装apr-1.4以上的版本。

第一部分 安装apr-1.4+

  1. 将所需要的安装包用rz导入centos6中,(若没有安装szrz,可以用yum源安装具体如下:yum install lrzsz)。

    650) this.width=650;" src="https://s4.51cto.com/oss/201710/19/a08d4a4c96453a9618c6f72b07815b98.png" title="1.png" style="width:500px;height:133px;" hspace="0" height="133" width="500" vspace="0" border="0" alt="a08d4a4c96453a9618c6f72b07815b98.png" />

  2. 解压缩并进入这个文件夹下 cd apr-1.6.2

  3. 安装包组:yum groupinstall "development tools"

  4. 指定文件存放的位置 ./configure --prefix=/app/apr

  5.  安装编译 make && make install

第二部分 安装apr-util-1.4+

 1. 解压缩并cd ../apr-util-1.6.0

 2. yum groupinstall "development tools"

 3.yum install pcre-devel openssl-devel expat-devel

 4. ./configure --prefix=/app/apr-util --with-apr=/app/apr/

 5. make -j 2 && make install

第三部分 安装httpd-2.4

  1. 解压缩cd ../httpd-2.4.27

  2. yum groupinstall "development tools"

  3. ./configure --prefix=/app/httpd24 --enable-so --enable-ssl --enable-cgi --enable-rewrite--with-zlib --with-pcre --with-apr=/app/apr/--with-apr-util=/app/apr-util/ --enable-modules=most--enable-mpms-shared=all --with-mpm=prefork

  4. make -j 4 && make install

    到此安装就完成了,接下来就可以启动服务了。

    650) this.width=650;" src="https://s1.51cto.com/oss/201710/19/f9acb1a2e316c37efd4c5ca711bfc098.png" title="2.png" style="width:500px;height:202px;" hspace="0" height="202" width="500" vspace="0" border="0" alt="f9acb1a2e316c37efd4c5ca711bfc098.png" />









本文出自 “13162732” 博客,请务必保留此出处http://13172732.blog.51cto.com/13162732/1974334

在centos6中安装2.4版本的HTTPd

原文地址:http://13172732.blog.51cto.com/13162732/1974334

知识推荐

我的编程学习网——分享web前端后端开发技术知识。 垃圾信息处理邮箱 tousu563@163.com 网站地图
icp备案号 闽ICP备2023006418号-8 不良信息举报平台 互联网安全管理备案 Copyright 2023 www.wodecom.cn All Rights Reserved