cent os apache gzip 安装
来源:互联网 发布:linux 文件上传工具 编辑:程序博客网 时间:2024/04/29 09:46
[size=18px]httpd安装[/size]
httpd 依赖apr和apr-util
下载地址: [url=http://apr.apache.org/download.cgi][/url]
安装apr
[root@xt test]# wget http://mirror.bit.edu.cn/apache//apr/apr-1.5.2.tar.gz
[root@xt test]# tar -zxf apr-1.5.2.tar.gz
[root@xt test]# cd apr-1.5.2
[root@xt apr-1.5.2]# ./configure --prefix=/usr/local/apr
[root@xt apr-1.5.2]# make
[root@xt apr-1.5.2]# make install
安装apr-util
[root@xt test]# wget http://mirrors.hust.edu.cn/apache//apr/apr-util-1.5.4.tar.gz
[root@xt test]# tar -zxf apr-util-1.5.4.tar.gz
[root@xt test]# cd apr-util-1.5.4
[root@xt apr-util-1.5.4]# ./configure --prefix=/usr/local/apr-util -with- apr=/usr/local/apr/bin/apr-1-config
[root@xt apr-util-1.5.4]# make
[root@xt apr-util-1.5.4]# make install
httpd 下载地址: [url=http://httpd.apache.org/download.cgi#apache24][/url]
安装httpd
[root@xt test]# wget http://mirrors.hust.edu.cn/apache//httpd/httpd-2.4.20.tar.gz
[root@xt test]# tar -zxf httpd-2.4.20.tar.gz
[root@xt test]# cd httpd-2.4.20
[root@xt test]# ./configure --prefix=PREFIX
[root@xt test]# make
[root@xt test]# make install
测试命令: PREFIX/bin/apachectl -k start
configure: error: no acceptable C compiler found in $PATH: 解决办法
#yum install gcc gcc-c++ gcc-g77 flex bison autoconf automake bzip2-devel zlib-devel ncurses-devel libjpeg-devel libpng-devel libtiff-devel freetype-devel pam-devel openssl-devel libxml2-devel
如果apr或者apr-util已经安装但提示找不到的解决办法:
在./configure --prefix=/etc/httpd/后面加上 -with- apr=PREFIX
"PREFIX" 为你安装的apr路径/usr/local/apr或者是"/usr/local/apr/bin/apr-1-config"
httpd 依赖apr和apr-util
下载地址: [url=http://apr.apache.org/download.cgi][/url]
安装apr
[root@xt test]# wget http://mirror.bit.edu.cn/apache//apr/apr-1.5.2.tar.gz
[root@xt test]# tar -zxf apr-1.5.2.tar.gz
[root@xt test]# cd apr-1.5.2
[root@xt apr-1.5.2]# ./configure --prefix=/usr/local/apr
[root@xt apr-1.5.2]# make
[root@xt apr-1.5.2]# make install
安装apr-util
[root@xt test]# wget http://mirrors.hust.edu.cn/apache//apr/apr-util-1.5.4.tar.gz
[root@xt test]# tar -zxf apr-util-1.5.4.tar.gz
[root@xt test]# cd apr-util-1.5.4
[root@xt apr-util-1.5.4]# ./configure --prefix=/usr/local/apr-util -with- apr=/usr/local/apr/bin/apr-1-config
[root@xt apr-util-1.5.4]# make
[root@xt apr-util-1.5.4]# make install
httpd 下载地址: [url=http://httpd.apache.org/download.cgi#apache24][/url]
安装httpd
[root@xt test]# wget http://mirrors.hust.edu.cn/apache//httpd/httpd-2.4.20.tar.gz
[root@xt test]# tar -zxf httpd-2.4.20.tar.gz
[root@xt test]# cd httpd-2.4.20
[root@xt test]# ./configure --prefix=PREFIX
[root@xt test]# make
[root@xt test]# make install
测试命令: PREFIX/bin/apachectl -k start
configure: error: no acceptable C compiler found in $PATH: 解决办法
#yum install gcc gcc-c++ gcc-g77 flex bison autoconf automake bzip2-devel zlib-devel ncurses-devel libjpeg-devel libpng-devel libtiff-devel freetype-devel pam-devel openssl-devel libxml2-devel
如果apr或者apr-util已经安装但提示找不到的解决办法:
在./configure --prefix=/etc/httpd/后面加上 -with- apr=PREFIX
"PREFIX" 为你安装的apr路径/usr/local/apr或者是"/usr/local/apr/bin/apr-1-config"
0 0
- cent os apache gzip 安装
- Cent OS 下安装Apache 详细教程
- 在CENT OS上编译安装APACHE+PHP+MYSQL
- cent os 5.5 安装
- Cent OS安装Samba
- cent os 安装
- cent os 安装jdk
- Cent OS 安装Spyder
- Cent OS JDK8安装
- Cent OS Tomcat8安装
- Cent OS安装Hadoop
- Cent OS安装Chrome
- vmware安装cent os
- Cent OS安装maven
- Cent OS 安装JDK
- cent os 主题安装
- cent os 下安装 svn
- cent os 系统盘安装 GCC
- 递归啦...
- 《数据结构及应用》总结(1)------数据结构
- IEEE 802.15.4协议完整中文版 - 4.5 功能概述
- Java clone() 浅克隆与深度克隆
- 双边滤波(Bilateral filter)
- cent os apache gzip 安装
- HashMap & Hashtable区别
- Android5.1系统外部存储和U盘可写解决方案
- Android中的AlarmManager的使用
- PowerPoint 2007双显示输出技巧
- android:getSlotFromBufferLocked: unknown buffer: 0xf3d544c0
- <LeetCode OJ> 54 / 59 Spiral Matrix( I / II )
- jQuery实现 全选/全不选
- 关于Fragment中viewpager的子fragment不能加载布局的问题