CentOS6.5下源码编译安装httpd2.4.23
2016-08-29 20:02
501 查看
1、安装环境为CentOS6.5,64位
[root@mylinux app]# uname -r 2.6.32-504.30.3.el6.x86_64 [root@mylinux app]# cat /etc/redhat-release CentOS release 6.5 (Final) [root@mylinux app]#2、官网上下载源码包
wget http://mirrors.tuna.tsinghua.edu.cn/apache//httpd/httpd-2.4.23.tar.gz[/code] 3、解压目录,进入进行configure配置操作,指定安装路径./configure --prefix=/application/httpd checking for chosen layout... Apache checking for working mkdir -p... yes checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking target system type... x86_64-unknown-linux-gnu configure: configure: Configuring Apache Portable Runtime library... configure: checking for APR... no configure: error: APR not found. Please read the documentation.4、当提示没有检测到APR时,我们需要到官网下载最新版apr包,解压安装。wget http://archive.apache.org/dist/apr/apr-1.4.5.tar.gz wget http://archive.apache.org/dist/apr/apr-util-1.5.4.tar.gz tar -xf apr-1.4.5.tar.gz cd apr-1.4.5 ./configure --prefix=/usr/local/apr make && make install tar -xf apr-util-1.5.4.tar.gz cd apr-util-1.5.4 ./configure --prefix=/usr/local/apr-util -with-apr=/usr/local/apr/bin/apr-1-config make && make install5、再次来安装httpd,此时指定apr[root@mylinux httpd]# ./configure --prefix=/application/httpd --with-apr=/usr/local/apr/bin/apr-1-config ............ Installing header filesmkdir /application/httpd/includeInstalling build system filesmkdir /application/httpd/buildInstalling man pages and online manualmkdir /application/httpd/manmkdir /application/httpd/man/man1mkdir /application/httpd/man/man8mkdir /application/httpd/manualmake[1]: Leaving directory `/application/app/httpd-2.4.23' [root@mylinux httpd]# make && make install6、启动httpd,测试服务是否启动[root@mylinux httpd]# /application/httpd/bin/httpd [root@mylinux httpd]# lsof -i:80 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME httpd 5440 root 3u IPv4 46088616 0t0 TCP *:http (LISTEN) httpd 5441 daemon 3u IPv4 46088616 0t0 TCP *:http (LISTEN) httpd 5442 daemon 3u IPv4 46088616 0t0 TCP *:http (LISTEN) httpd 5443 daemon 3u IPv4 46088616 0t0 TCP *:http (LISTEN) httpd 5573 daemon 3u IPv4 46088616 0t0 TCP *:http (LISTEN)
7、添加man帮助文件
vim /etc/man.config
添加MANPATH /application/httpd/man
此时就可以使用man命令查看httpd的帮助文档了。
相关文章推荐
- CentOS-6 源码编译安装httpd 2.4
- CentOS6.5下编译R源码并安装Spark R
- CentOS 6.5下编译安装httpd+mysql+php+phpMyAdmin
- CentOS 6.4源码编译安装httpd并启动测试
- CentOS 6.4 编译安装httpd-2.2.25源码包
- centos下LAMP之源码编译安装httpd
- CentOS 6.5下源码编译安装Zabbix2.4.8
- CentOS6.8 x64+Nginx1.3.8/Apache-httpd 2.4.3+PHP5.4.8(php-fpm)+MySQL5.5.28+CoreSeek4.1源码编译安装
- CentOS6.5下编译安装httpd
- 总结之:CentOS 6.4源码编译安装httpd并启动测试 推荐
- CentOS6.8 x64+Nginx1.3.8/Apache-httpd 2.4.3+PHP5.4.8(php-fpm)+MySQL5.5.28+CoreSeek4.1源码编译安装
- CentOS 6.4源码编译安装httpd并启动测试(转自linux公社)
- 【源码包编译】CentOS-5.7安装GTK+(未完)
- CentOS 4.4下源码编译安装apache+php+mysql
- 从源码编译安装sipx4.0(CENTOS 操作系统)
- Centos-Server-Mysql服务(源码编译安装)--(三)
- CentOS 下源码编译安装apache+php+mysql
- centos6.2 gcc-4.7.0源码编译安装
- CentOS源码编译安装MySQL 5.5.15 | CentOS教程
- CentOS源码编译安装Nginx和tcp_proxy module