资讯专栏INFORMATION COLUMN

CentOS下Apache安装总结

omgdog / 2719人阅读

摘要:下安装总结环境操作系统服务器其他关键依赖库命令解压命令命令格式命令说明命令参数解释将下的文件解压到指定的目录下无查询指定的软件无卸载指定名称的软件不做软件之间的依赖检查无指定安装目录依赖个人理解安

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递女装)。

文章版权归作者所有,未经允许请勿转载,若此文章存在违规行为,您可以联系管理员删除。

转载请注明本文地址:https://www.ucloud.cn/yun/35882.html

相关文章

  • Centos安装PHP ldap扩展

    摘要:下安装扩展有两种方法,仅供参考。一在线安装执行下面命令可能出现的问题就是版本冲突的意思。然后打开中扩展完成,重启。 Centos下安装PHP ldap扩展,有两种方法,仅供参考。 一、在线安装 执行下面命令: yum install PHP-ldap 可能出现的问题: Error: php70w-common-.. conflicts with php-common-5.4.......

    imtianx 评论0 收藏0

发表评论

0条评论

omgdog

|高级讲师

TA的文章

阅读更多
最新活动
阅读需要支付1元查看
<