分享web开发知识

注册/登录|最近发布|今日推荐

主页 IT知识网页技术软件开发前端开发代码编程运营维护技术分享教程案例
当前位置:首页 > 网页技术

apache源码安装

发布时间:2023-09-06 01:36责任编辑:董明明关键词:apache

1.apr和apr-util,下载地址: http://apr.apache.org/download.cgi

yum install gccyum install libtoolyum install expat-develyum install pcre-develcd 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.bakvi 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.gzcd pcre2-10.30./configure --prefix=/opt/pcremake && make install或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-somake && make install

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

apache源码安装

原文地址:https://www.cnblogs.com/adtuu/p/8284408.html

知识推荐

我的编程学习网——分享web前端后端开发技术知识。 垃圾信息处理邮箱 tousu563@163.com 网站地图
icp备案号 闽ICP备2023006418号-8 不良信息举报平台 互联网安全管理备案 Copyright 2023 www.wodecom.cn All Rights Reserved