Apache 安装后启动出现的错误

时间:2022-08-13 09:18:36

错误信息 1: configure: error: APR not found 解决方法:yum install apr* -y

错误信息 2:httpd: apr_sockaddr_info_get() failed for shiwei

httpd: Could not reliably determine the server's fully qualified domain name, using

127.0.0.1 for ServerName

解决办法:

(1)可以设定 httpd.conf 文件中的 ServerName,如下:ServerName localhost:80

(2)在 /etc/hosts 中填入自己的主机名称 bogon,如下:127.0.0.1 shiwei (用户名称) 错误信息 3:

[proxy_balancer:emerg] [pid 4062:tid 140351089870592] AH01177: Failed to lookup provider 'shm' for 'slotmem': is mod_slotmem_shm loaded??

解决方法:

mod_slotmem_shm 模块 ,编辑该文件,放开

LoadModule slotmem_shm_module modules/mod_slotmem_shm.so