1.apr和apr-util,下载地址: http://apr.apache.org/download.cgiyum install gccyum install libtoolyum install expat-develyum install pcre-develcd apr-1.6.3/./configure --prefix=/opt/apr出现以下错误r...
1.apr和apr-util,下载地址: http://apr.apache.org/download.cgi
yum install gcc yum install libtool yum install expat-devel yum install pcre-devel cd apr-1.6.3/ ./configure --prefix=/opt/apr
出现以下错误
rm: cannot remove ‘libtoolT‘: No such file or directory
或
include/arch/unix/apr_private.h is unchange
cp configure ./configure.bak vi configure #$RM “$cfgfile” #注释掉这行
:wq
!./configure --prefix #重新执行上一次相同的命令
make -j 4 #四核运行
make install
tar -zxvf apr-util-1.6.1.tar.bz2 #注意不要下载apr-util-1.6.1.tar.gz这个gz文件会出现安装错误
cd apr-util-1.6.1
./configure --prefix=/opt/apr-util --with-apr=/opt/apr
make && make instal
2. 下载安装pcre【如果以及yum安装则跳过此步】
wget https://ftp.pcre.org/pub/pcre/pcre2-10.30.tar.gztar -zxvf pcre2-10.30.tar.gz cd pcre2-10.30 ./configure --prefix=/opt/pcre make && makeinstall 或 yum -y install pcre-devel
3.安装apache
./configure --prefix=/opt/apache --with-apr=/opt/apr --with-apr-util=/opt/apr-util --with-include-apr --enable-so make && makeinstall
4.你会发现apache stop|restart|start都不成功
Could not reliably determine the server‘s fully qualified domain name
解决办法
vi httpd.conf #ServerName www.example.com: 80 #修改为 ServerName localhost: 80
原文:https://www.cnblogs.com/adtuu/p/8284408.html
沃梦达教程
本文标题为:apache源码安装


猜你喜欢
- 阿里云ECS排查CPU数据分析 2022-10-06
- 利用Docker 运行 python 简单程序 2022-10-16
- KVM虚拟化Linux Bridge环境部署的方法步骤 2023-07-11
- IIS搭建ftp服务器的详细教程 2022-11-15
- 解决:apache24 安装后闪退和配置端口映射和连接超时设置 2023-09-11
- 教你在docker 中搭建 PHP8 + Apache 环境的过程 2022-10-06
- CentOS7安装GlusterFS集群的全过程 2022-10-10
- 【转载】CentOS安装Tomcat 2023-09-24
- nginx中封禁ip和允许内网ip访问的实现示例 2022-09-23
- CentOS_mini下安装docker 之 安装docker CE 2023-09-23