登录  /  注册
首页 > 运维 > CentOS > 正文

总结CentOS下Apache安装

藏色散人
发布: 2021-02-16 09:21:50
转载
2459人浏览过

下面由centos/" target="_blank">centos教程栏目给大家总结centos下apache安装,希望对需要的朋友有所帮助!

总结CentOS下Apache安装

CentOS下Apache安装总结

环境(Environment)

操作系统:CentOS 6.8
服务器:Apache 2.4.29
其他关键依赖库:apr 1.6.3、apr-util 1.6.1、pcre-8.41

命令(Command)

  • 解压命令
命令格式 命令说明 命令参数解释
tar zxvf [dir1] -C [dir2] 将dir1下的文件解压到dir2指定的目录下
rpm -qa [software-name] 查询指定的软件
rpm -e --nodeps [software-full-name] 卸载指定名称的软件 --nodeps:不做软件之间的依赖检查
./configure --prefix=[dir] --with-[lib] --prefix:指定安装目录--with-[lib]:依赖(个人理解)
  • Apache安装
  • 编译安装(make install)

问题(problem)

发生时间 错误内容 解决方案(个人) 解决方案(网络) 权重
Apache 安装时 error:Cannot use an external APR with the bundled APR-util 对apr-util重新进行编译安装 Google
Apache 安装时 error:Did not find pcre-config script at [dir] 将pcre2替换为pcre,然后进行编译安装 Google
pcre安装时 error: You need a C++ Compiler for C++ Support Google yum install -y gcc gcc-c++
Apache 安装时 error:pcre-config for libpcre not found 在./configure 配置时使用--with-pcre=[dir]指定pcre安装目录 重新安装或者第一次安装pcre
Apache 安装时 error:no acceptable C complier found in $PATH Google yum -y install gcc
apr-util 安装时 (一部分错误提示)error:'apr_xml_parser' has no memebr named 'xp' Google yum install expat-devel
Apache 安装时 (一部分错误提示)error:openssl version is too old Google yum install openssl-develyum update openssl

第一次编写这种总结,如有不对之处,欢迎dalao指出(给dalao递女装)。

以上就是总结CentOS下Apache安装的详细内容,更多请关注php中文网其它相关文章!

智能AI问答
PHP中文网智能助手能迅速回答你的编程问题,提供实时的代码和解决方案,帮助你解决各种难题。不仅如此,它还能提供编程资源和学习指导,帮助你快速提升编程技能。无论你是初学者还是专业人士,AI智能助手都能成为你的可靠助手,助力你在编程领域取得更大的成就。
来源:segmentfault网
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
作者最新文章
最新问题
关于CSS思维导图的课件在哪? 课件
凡人来自于2024-04-16 10:10:18
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 意见反馈 讲师合作 广告合作 最新更新
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习
PHP中文网抖音号
发现有趣的

Copyright 2014-2024 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号