在CentOS6安装apache源码包
2017-10-18 21:31
344 查看
一、安装准备
1.安装C语言编辑器:gcc
2.在http://mirror.bit.edu.cn/apache/httpd上下载安装包
3.安装WinSCP
将下载在windows上的httpd安装拷贝到Linux /root下
二、安装
1.解压httpd安装包:在/root下输入 tar -zxvf httpd-2.2.34.tar.gz。
2.进入解压目录:cd httpd-2.2.34。
3.查看安装帮助:vi INSTALL。(步骤在INSTALL文件中带$的语句)
4.指定安装路径: ./configure --prefix=/usr/local/apache。
我安装时出现错误:configure error:Cannot use an external APR with the bundled APR-util。
此时需要安装apr和apr-util。
5.安装apr:
cd srclib/apr
./configure --prefix=/usr/local/apr
make && make install
6.安装apt-util:
cd srclib/apr-util
./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr
make && make install
7.安装apache:
./configure --prefix=/usr/local/apache --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util
make && make instal
三、启动
prefix/bin/apachectl start:/usr/local/apache/bin/apachectl start。
报错httpd:Could not reliably determine the server's fully qualified domain name,using localhost.localdomain for ServerName.
1.安装C语言编辑器:gcc
2.在http://mirror.bit.edu.cn/apache/httpd上下载安装包
3.安装WinSCP
将下载在windows上的httpd安装拷贝到Linux /root下
二、安装
1.解压httpd安装包:在/root下输入 tar -zxvf httpd-2.2.34.tar.gz。
2.进入解压目录:cd httpd-2.2.34。
3.查看安装帮助:vi INSTALL。(步骤在INSTALL文件中带$的语句)
4.指定安装路径: ./configure --prefix=/usr/local/apache。
我安装时出现错误:configure error:Cannot use an external APR with the bundled APR-util。
此时需要安装apr和apr-util。
5.安装apr:
cd srclib/apr
./configure --prefix=/usr/local/apr
make && make install
6.安装apt-util:
cd srclib/apr-util
./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr
make && make install
7.安装apache:
./configure --prefix=/usr/local/apache --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util
make && make instal
三、启动
prefix/bin/apachectl start:/usr/local/apache/bin/apachectl start。
报错httpd:Could not reliably determine the server's fully qualified domain name,using localhost.localdomain for ServerName.
相关文章推荐
- 在CentOS6上安装Apache Sorl 6.3.0
- centos6安装,配置,启动apache
- CentOS6编译安装Apache2.4 & PHP5.6
- Linux安装apache源码包
- 完整配置CentOS6安装LAMP(Apache/MySQL/PHP)环境搭建教程
- CentOS6下Apache、MySql、PHP安装
- centos6安装Apache服务器
- CentOS6安装Apache-Ambari笔记
- CentOS6上Apache服务器的安装与配置
- CentOS6安装apache,开放80端口
- ubuntu 14.04 编译安装 apache 和 php
- 如何在CentOS 6安装Linux,Apache,MySQL,PHP(LAMP)
- Centos7 源码安装 Apache
- ubuntu14.04 安装apache+mysql+php
- Apache2.2 windows xp安装配置
- LAMP介绍,MySQL、MariaDB介绍 MySQL安装,安装mariadb,安装Apache
- Apache2.0.48 php4 安装,在win2k professional 上,且配好中文显示
- php5.3.1和Apache2.2安装配置问题
- 集成安装1 安装apache+svnadmin
- apache安装configure: error: APR not found. Please read the documentation