源代码安装 httpd 2.44
原创
©著作权归作者所有:来自51CTO博客作者zhu789的原创作品,请联系作者获取转载授权,否则将追究法律责任
1.源代码
安装包格式一般为:名称.tar.gz 名称.tar.bz2
步骤:
./configure 是一个shell脚本
安装目录 一般会安装到bin目录和 /sbin目录
目录/bin /sbin /lib /include 一般在安装过成中会自动创建
文件一般解压后会用到一个配置目录 --sysconfdir
检测安装环境
安装http2.4 这是安装包
第一步 :拆包
[root@localhost src]# tar -jxvf httpd-2.4.4.tar.bz2 -C /usr/local/src
[root@localhost src]# tar -zxvf apr-1.4.6.tar.gz -C/usr/local/src
[root@localhost src]# tar -zxvf apr-1.4.6.tar.gz -C/usr/local/src
[root@localhost src]#./configure
[root@localhost src]# make
Make install
[root@localhost apr-util-1.5.1]# tar -zxvf apr-util-1.5.1.tar.gz -C /usr/local/src/
然后找到安装目录
[root@localhost apr-util-1.5.1]# ./configure --with-apr=/usr/local/apr/bin/apr-1-config
Make
Make install
安装之后 配置http2.4
再次尝试安装
[root@localhost httpd-2.4.4]# ./configure --prefix=/usr/local/apache --sysconfdir=/etc/httpd
结果发现错误安装时会发现Apr没有发现
configure:
checking for APR... no
configure: error: APR not found. Please read the documentation.
我们进入 /usr/local/bin/测试
[root@localhost bin]# ./apchectl start
[root@localhost bin]# netstart -tupln|grep 80
安装完毕!
上一篇:利用pxe实现无人安装linux
下一篇:Linux中安装和配置无线网卡
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
5-Docker实例-安装httpd
5-Docker实例-安装httpd
centos apache docker -
【小白源代码】小区物业管理系统
基于SpringBoot实现的小区物业管理系统是为物业管理打造的一款在线管理平台,它可以实时完成信息处理,对小区信息、住户等进行在线管理,使其系统化和规范化。
SpringBoot Vue 系统源码 课程设计 -
saiku源代码安装
以前的文章介绍了如何直接安装saiku,。这里面偷懒没有源代码编译,不过这几天也就这么用了。 最近随着使用的深入,不仅仅修改修改页面那么简单,所以需要源代码编译!下面介绍一下编译过程: 一、下载:首先github
pentaho saiku github 用户名 git 编译过程