centos7环境下apache2.2.34的编译安装
1.获取apache2.2.34的源码包 http://archive.apache.org/dist/httpd/httpd-2.2.34.tar.gz 2.获取apache的编译参数 apache的编译参数 [root@i-job-backend-web01:~]# cat /usr/local/apache2/build/config.nice #! /bin/sh # # Created by configure "./configure" \ "--prefix=/usr/local/httpd-2.2.26" \ "--enable-isapi" \ "--enable-file-cache" \ "--enable-cache" \ "--enable-mem-cach" \ "--enable-deflate" \ "--enable-expires" \ "--enable-headers" \ "--disable-version" \ "--enable-proxy" \ "--enable-proxy-balancer" \ "--enable-ssl" \ "--enable-static-rotatelogs" \ "--enable-static-htpasswd" \ "--enable-static-htdigest" \ "--enable-static-logresolve" \ "--enable-static-htdbm" \ "--enable-static-ab" \ "--enable-static-checkgid" \ "--enable-static-htcacheclean" \ "--enable-cgi" \ "--enable-vhost-alias" \ "--enable-rewrite" \ "--enable-so" \ "--with-ssl=/usr/local/lab/openssl" \ "--enable-mime-magic" \ "--with-mpm=prefork" \ "$@ # tar –zxf httpd-2.2.34.tar.gz # cd httpd-2.2.34 # 执行预编译 ./configure \ "--prefix=/usr/local/httpd-2.2.34" \ "--enable-isapi" \ "--enable-file-cache" \ "--enable-cache" \ "--enable-mem-cach" \ "--enable-deflate" \ "--enable-expires" \ "--enable-headers" \ "--disable-version" \ "--enable-proxy" \ "--enable-proxy-balancer" \ "--enable-ssl" \ "--enable-static-rotatelogs" \ "--enable-static-htpasswd" \ "--enable-static-htdigest" \ "--enable-static-logresolve" \ "--enable-static-htdbm" \ "--enable-static-ab" \ "--enable-static-checkgid" \ "--enable-static-htcacheclean" \ "--enable-cgi" \ "--enable-vhost-alias" \ "--enable-rewrite" \ "--enable-so" \ "--with-ssl=/usr/local/lab/openssl-1.0.2p" \ "--enable-mime-magic" \ "--with-mpm=prefork" ...... checking for OpenSSL version... checking openssl/opensslv.h usability... yes checking openssl/opensslv.h presence... yes checking for openssl/opensslv.h... yes checking openssl/ssl.h usability... yes checking openssl/ssl.h presence... yes checking for openssl/ssl.h... yes OK forcing SSL_LIBS to "-lssl -lcrypto " adding "-lssl" to LIBS adding "-lcrypto" to LIBS checking openssl/engine.h usability... yes checking openssl/engine.h presence... yes checking for openssl/engine.h... yes checking for SSLeay_version... no checking for SSL_CTX_new... yes checking for ENGINE_init... yes checking for ENGINE_load_builtin_engines... yes checking for SSL_set_cert_store... no configure: error: ... Error, SSL/TLS libraries were missing or unusable # 因为openssl经常曝出一些大的漏洞,使用最新版本的openssl1.1.0i --with-openssl=/usr/local/lab/openssl-1.1.0i # 编译执行 Make && make install 配置文件可以直接将/usr/local/httpd-2.2.34/conf目录替换到新的编译安装包中 测试
分类:
apache
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 单元测试从入门到精通
· 上周热点回顾(3.3-3.9)
· winform 绘制太阳,地球,月球 运作规律