Apache编译与安装 RedHat enterprises 6.2
引自:http://blog.chinaunix.net/uid-26881541-id-3336614.html
http://apr.apache.org/download.cgi
命令:
yum install wget ppl cloog-ppl mpfr cpp kernel-headers glibc-headers gibc-devel gcc-4.4.5-6
yum install wget gcc make mysql mysql-server mysql-devel httpd php php-mysql sendmail
apache下载地址:http://httpd.apache.org/download.cgi#apache24
到http://httpd.apache.org/下载以源码方式安装,我下载的版本是Apache httpd 2.4.3
解压:[root@localhost apache]# tar -jxvf httpd-2.4.3.tar.bz2
配置环境:
[root@localhost httpd-2.4.3]# ./configure --prefix=/usr/local/apache2 --enable-so --enable-mods-shared=all --enable-modules=most
提示configure: error: APR not found. Please read the documentation,
解决:
缺少Apr,下载http://projects.apache.org/indexes/quick.html
解压:[root@localhost apache]# tar zxvf apr-1.4.6.tar.gz
配置环境:
[root@localhost apr-1.4.6]# ./configure --prefix=/usr/local/apr/
编译和安装:
[root@localhost apr-1.4.6]#make
[root@localhost apr-1.4.6]#make install
编译安装完成apr之后,继续编译apache,又有如下的提示configure: error: APR-util not found. Please read the documentation
解决:
缺少APR-util,http://apr.apache.org/下载
解压: [root@localhost apache]# tar zxvf apr-util-1.4.1.tar.gz
配置环境:
在 [root@localhost apr-util-1.4.1]./configure --prefix=/usr/local/apr-util -with- apr=/usr/local/apr/bin/apr-1-config时,提示configure: error: APR could not be located. Please use the --with-apr option,这是路径的问题(这个问题困扰我好久了,在这里找到了说明http://apache.jz123.cn/install.html),应该用下面的命令[root@localhost apr-util-1.4.1]./configure --with-apr=/usr/local/
继续编译Apache,晕啊,仍没有成功,提示如下configure: error: pcre-config for libpcre not found. PCRE is required and available from http://pcre.org/
解决:
下载prce,网址http://sourceforge.net/projects/pcre/
解压:unzip pcre-8.31.zip
配置环境:
[root@localhost pcre-8.31]#./configure --prefix=/usr/local/
编译和安装:
[root@localhost pcre-8.31]#make
[root@localhost pcre-8.31]#make install
再次编译Apache,皇天不负有心人啊,终于通过了!此时运行httpd(service httpd start),在浏览器上输入127:0:0:1,就能看到下面的了
This page is used to test the proper operation of the Apache HTTP server after it has been installed. If you can read this page, it means that the Apache HTTP server installed at this site is working properly.
Apache编译与安装 RedHat enterprises 6.2的更多相关文章
- Apache:编译和安装
1.在Fedora / CentOS / Red Hat Enterprise Linux上安装 sudo yum install httpd sudo systemctl enable httpd ...
- centos7下源码编译方式安装httpd
前言 Apache至少需要apr.apr-util.pcre组件的支持. APR(Apache portable Run-time libraries,Apache可移植运行库)的目的如其名称一样,主 ...
- apache编译安装 httpd 2.2 httpd 2.4
#apache编译安装#httpd 2.2 , httpd 2.4 #!/bin/sh #apache编译安装 #httpd 2.2 , httpd 2.4 #centos #rpm -e httpd ...
- apache编译安装参数说明
apache编译安装参数说明 ./configure //配置源代码树--prefix=/usr/local/apache2 //体系无关文件的顶级安装目录prefix ,也就apache的安装目录. ...
- LANMP系列教程之Apache编译安装CentOS7环境
1.准备好源码包并配置好yum源,需要的源码包包括:httpd-2.4.18.apr-1.5.2.tar.gz.apr-util-1.5.4.tar.gz 2.准备用户 groupadd -r a ...
- Apache编译安装
1.准备好源码包并配置好yum源,需要的源码包包括:httpd-2.4.18.apr-1.5.2.tar.gz.apr-util-1.5.4.tar.gz 2.准备用户 groupadd -r apa ...
- Linux下编译,安装Apache httpd服务器
环境:ubuntu 16.0.4 Apache官网下载Apache httpd压缩包:httpd-2.4.27.tar.gz,安装之前请确定安装了make工具,我安装的是GNU make 解压文件 s ...
- linux 编译式安装apache
apache的安装需要两个组件,APR对于Tomcat最大的作用就是socket调度 组件下载解压完成 ,讲两个组件解压包移动到apache的类库文件夹内 注:如果系统自带了apr和apr-util可 ...
- Linux下编译、安装并启动apache
安装步骤如下: 1. 首先去http://httpd.apache.org/download.cgi上下载需要的apache源码,然后存放至/usr/local/src下[此源码存放路径可任意指定] ...
随机推荐
- 使用Sass优雅并高效的实现CSS中的垂直水平居中(附带Flex布局,CSS3+SASS完美版)
实现css水平垂直居中的方法有很多,在这里我简单的说下四种比较常用的方法: 1.使用CSS3中的Flex布局 对于flex,我们要了解的是它是一个display的属性,而且必须要给他的父元素设置fle ...
- django 更新model
修改models.py 中对应的class 在admin.py 中 增加 admin.site.register(WafDevice) 进入dbshell python manage.py dbshe ...
- LINQ.CS
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Zdso ...
- final ,override关键字
final 有时我们会定义这样一种类,我们不希望其他类继承它,或者不想考虑它是否适合作为一个基类.为了实现这一目的,c++ 11新标准提供了一种防止继承发生的方法,即在类名后跟一个关键字final: ...
- php的public、protected、private三种访问控制模式的区别
public: 公有类型 在子类中可以通过self::var调用public方法或属性,parent::method调用父类方法 在实例中可以能过$obj->var 来调用 public类型的方 ...
- iOS常见问题(4)
一.非ARC内存管理问题. 有些同学在创建项目的时候忘记点ARC了,导致一些成员属性都莫名其妙的释放了.然后出现了一系列莫名其妙的错误. 在滚动UITableView的时候出现野指针错误. 一出现这些 ...
- Palindrome Partitioning
Palindrome Partitioning Given a string s, partition s such that every substring of the partition is ...
- 获得iOS设备唯一标识
使用-[UIDevice identifierForVendor]或是-[ASIdentifierManager advertisingIdentifier]来作为你框架和应用的唯一标示符.坦白的来说 ...
- WPF解析PPT为图片
偶遇需要解析 PPT为单张图片 其中,对于包含动画的PPT页,分别对动画最后效果进行截取,即每个连续动画截取 (动画N个)N+1(原图)张 http://git.oschina.net/jiailiu ...
- MVC与WebForm的一些区别
MVC与WebForm的一些区别 它们都是ASP.NET WEB开发的两种方式 .但是他们也是有一些不同.做个小结. 1.MVC是没有服务器端控件这么一说的,也就是没有viewstate,也就不会产生 ...