源码安装步骤:1、找包 2、配置环境 3、上传包 4、解压包 5、进入到对应目录 6、指定安装路径 7、编译 8、安装
源码包安装不会解决依赖关系,在安装过程中缺少了依赖包会提示错误,无法安装,此时需要先把缺少的依赖包安装好,再回来安装之前的源码包。
Httpd2.4版本相对坑比较多,对于刚学源码包安装是一个不错的练习案例
1、找httpd2.4包,进行上传到/tmp下
2、按章源码包环境:yum -y install gcc make openssl-devel pcre pcre-devel zlib-devel
3、解压 :tar xf httpd-v2.4.41.tar.gz tar命令一般解压.tar.gz结尾的文件。
4、进入到解压文件目录: cd httpd-2.4.41/
5.指定安装目录:/configure --prefix=/usr/local/httpd
[root@localhost httpd-2.4.41]# ./configure --prefix=/usr/local/httpd
checking for chosen layout… Apache
checking for working mkdir -p… yes
checking for grep that handles long lines and -e… /usr/bin/grep
checking for egrep… /usr/bin/grep -E
checking build system type… x86_64-pc-linux-gnu
checking host system type… x86_64-pc-linux-gnu
checking target syst
Httpd2.4源码安装
最新推荐文章于 2024-03-17 17:10:01 发布
本文详细介绍了Apache Httpd2.4的源码安装步骤,包括寻找和上传源码包、配置环境、安装依赖、编译与安装过程中的问题及解决方法,如APR、APR-util和expat-devel的安装,以及启动和验证Apache服务的正确性。
摘要由CSDN通过智能技术生成