当前位置: 首页 > Linux

CentOS下Apache安装总结

时间:2023-04-07 00:56:02 Linux

CentOS环境(Environment)操作系统下Apache安装总结:CentOS6.8服务器:Apache2.4.29其他关键依赖库:apr1.6.3、apr-util1.6.1、pcre-8.41命令(Command)解压命令格式命令说明命令参数说明tarzxvf[dir1]-C[dir2]将dir1下的文件解压到dir2指定的目录下norpm-qa[software-name]查询指定的软件norpm-e--nodeps[software-full-name]卸载指定名称的软件--nodeps:不检查软件之间的依赖关系./configure--prefix=[dir]--with-[lib]None--prefix:指定安装目录--with-[lib]:Dependency(个人理解)Apache安装编译安装(makeinstall)问题(problem)发生时间错误内容解决方案(个人)解决方案(网络)weightApache安装错误:CannotuseanexternalAPRwiththebundledAPR-utilRecompileapr-utilandinstallGooglelowpcre安装报错:Didnotfindpcre-configscriptat[dir]Replacepcre2withpcre,thencompileandinstallGooglelowpcre安装报错:YouneedaC++CompilerforC++SupportGoogleyuminstall-ygccgcc-c++低Apache安装错误:找不到libpcre的pcre-config使用--with-pcre=[dir]在./configure配置期间指定pcre安装目录重新安装或首次安装pcre低Apache安装错误:找不到可接受的C编译器$PATHGoogleyum-yinstallgcchighapr-utilinstallation(有些错误提示)error:'apr_xml_parser'hasnomemebrnamed'xp'Googleyuminstallexpat-devellowApache安装(有些错误提示)error:opensslversionistoooldGoogleyuminstallopenssl-develyumupdateopensslhigh第一次写这个总结,如有不妥欢迎dalao指出(给dalao女的衣服)。