转自http://elkpi.com/topics/centos7-docker-httpd-error.html
File exists: AH01762: Failed to create shared memory segment on file /run/httpd/authdigest_shm.7
File exists: AH01760: failed to initialize shm - all nonce-count checking, one-time nonces, and MD5-sess algorithm disabled
AH00020: Configuration Failed, exiting
结果httpd就自己退掉了,如果手动进入docker内部手动启动,其实是可以成功运行的。后来一查,是因为docker启动后,并不会创建/run/httpd
因此在执行之前,加入以下一些处理:
1
2
3
|
rm -rf /run/httpd/
mkdir -p /run/httpd/
/usr/sbin/httpd
|
删除原有的,再次创建,保证/run/httpd目录的存在后,再运行httpd,即可解决该问题。
更多精彩内容:各种AI课程、技能课程、黑科技软件、网站小程序源码、副业小项目、PPT模板等精品素材、电商课程、推广引流课程等,尽在 天边资源网 。