安装源码httpd-2.4.1错误解决办法

简介:

apache常见错误总结:
1、./configure报错
Configuring Apache Portable Runtime library ...
checking for APR... configure: error: the --with-apr parameter is incorrect. It must specify an install prefix, a build directory, or an apr-config file.
解决办法:
下载安装
apr:http://apache.etoak.com//apr/apr-1.4.6.tar.gz
apr-utils:http://apache.etoak.com//apr/apr-util-1.4.1.tar.gz
或者yum -y install apr apr-util
checking for pcre-config... false
configure: error: pcre-config for libpcre not found. PCRE is required and available from http://pcre.org/

解决办法:
[root@www httpd-2.4.1]# yum -y install pcre-devel
2、启动报错:
[root@www bin]# service httpd start
故障1:AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain. Set the 'ServerName' directive globally to suppress this message
httpd (pid 912) already running

其实在这里并不是报错,只是个提醒信息,解决办法比较多
(1)、在/etc/hosts写下当前ip与主机名的对应关系
(2)、在本机指能解析本机主机名的DNS
(3)、修改主配置文件,找到ServerName这一行写入本机主机名

故障2:Name or service not known: AH01564: unable to find IPv4 address of "2015120415424"
AH00016: Configuration Failed

原因是主机名为数字,只需将主机名更改为非纯数字,修改完成后再/etc/hosts中将原来的主机名替换为新修改的,如果没有原主机名,那么就添加一行:
127.0.0.1  新主机名
保存后重启,然后就能正常启动了


参考资料:http://www.lofter.com/tag/xampp


本文转自 boy461205160 51CTO博客,原文链接:http://blog.51cto.com/461205160/1760165


相关文章
|
Windows
【Windows 逆向】OD 调试器工具 ( 推荐汉化版的 OD 调试工具 | 吾爱破解专用版Ollydbg | 备选工具 )
【Windows 逆向】OD 调试器工具 ( 推荐汉化版的 OD 调试工具 | 吾爱破解专用版Ollydbg | 备选工具 )
11737 0
【Windows 逆向】OD 调试器工具 ( 推荐汉化版的 OD 调试工具 | 吾爱破解专用版Ollydbg | 备选工具 )
|
SQL 缓存 Java
SpringBoot系列教程JPA之update使用姿势
上面两篇博文拉开了jpa使用姿势的面纱一角,接下来我们继续往下扯,数据插入db之后,并不是说就一层不变了,就好比我在银行开了户,当然是准备往里面存钱了,有存就有取(特别是当下银行利率这么低还不如买比特币屯着,截止19年6月22日,btc已经突破1.1w$,可惜没钱买😭)这就是我们今天的主题,数据更新--update的使用姿势
1305 0
SpringBoot系列教程JPA之update使用姿势
|
SQL 存储 数据库
MSSQL性能调优实战:索引优化、SQL语句精调与高效并发处理
在Microsoft SQL Server(MSSQL)的性能调优征途中,索引优化、SQL语句的精细调整以及高效并发处理是三大核心策略
|
安全 网络协议 Linux
yum出现Loaded plugins: fastestmirror, security Loading mirror speeds from cached hostfile解决方法
yum出现Loaded plugins: fastestmirror, security Loading mirror speeds from cached hostfile解决方法
3055 3
|
安全 Linux 网络安全
Linux端的ssh如何升级?
Linux端的ssh如何升级?
961 59
|
JavaScript 前端开发 Java
115.【SpringBoot(IDEA)+Vue(Vscode)前后端交互】(一)
115.【SpringBoot(IDEA)+Vue(Vscode)前后端交互】
1243 0
|
Docker 容器
docker保存镜像、打包tar、加载tar镜像
本文记录docker保存镜像、打包tar、加载tar镜像。
3497 0
|
人工智能 自然语言处理 关系型数据库
|
安全 JavaScript 前端开发
Nginx服务扫描漏洞修复
Nginx服务扫描漏洞修复