CentOS下编译安装Apache2(新)
2015-10-13 21:31
585 查看
官网下载apache,apr, apr-util,pcre
httpd-2.4.16.tar.gz http://httpd.apache.org/download.cgi#apache24
apr-1.5.2.tar.gz http://apr.apache.org/download.cgi
apr-util-1.5.4.tar.gz
pcre-8.37.tar.gz http://www.pcre.org/
1 yum安装gcc
2 源码安装apr,apr-util
3 源码安装pcre
4 源码安装apache
5 启动服务
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain. Set the 'ServerName' directive globally to suppress this message
不影响,浏览器输入虚拟机IP,出现It works! 说明成功。
httpd-2.4.16.tar.gz http://httpd.apache.org/download.cgi#apache24
apr-1.5.2.tar.gz http://apr.apache.org/download.cgi
apr-util-1.5.4.tar.gz
pcre-8.37.tar.gz http://www.pcre.org/
1 yum安装gcc
yum -y install gcc
2 源码安装apr,apr-util
./configure --prefix=/usr/local/apr/ make make install ./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr/ make make install
3 源码安装pcre
./configure --prefix=/usr/local/pcre/ make make install
4 源码安装apache
./configure --prefix=/usr/local/apache2/ --with-apr=/usr/local/apr/ --with-apr-util=/usr/local/apr-util/ --with-pcre=/usr/local/pcre/ make make install
5 启动服务
/usr/local/apache2/bin/apachectl start
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain. Set the 'ServerName' directive globally to suppress this message
不影响,浏览器输入虚拟机IP,出现It works! 说明成功。
相关文章推荐
- Apache Spark入门攻略
- 对apache-commons工具类的简单介绍
- 详解浏览器缓存机制与Apache设置缓存
- org.apache.jasper.JasperException: Expecting "jsp:param" standard action with "name" and "value" attributes
- Apache Ant运行时Unable to locate tools.jar解决方法
- apache virtualhost配置 apache配置多个网站
- Apache修改最大并发连接数
- Java-No.13 Apache Commons工具集整理
- MapReduce中碰到数据覆盖现象,org.apache.hadoop.io.Text.getBytes 问题
- apache重写字段详细说明
- comet4j集成项目报错JSON转换异常:html><head><title>Apache ....问题的解决
- Apache Benchmark安装、参数含义&使用总结、结果分析
- Linux:一台apache服务器上部署多个项目的apache配置
- 使用Apache Benchmark做压力测试遇上的5个常见问题
- windows下 简单配置PHP + apache +mysql
- Apache Commons Configuration使用入门
- iOS 搭建Apache服务器(10.10系统)
- mac 下apache访问access forbidden
- Deprecated: Function eregi() is deprecated in D:\Apache24\htdocs\processfeedback.php on line 21
- Windows下Apache使用问题总结(持续更新)