1. Problem
Apache 2.4 AH01762 & AH01760: failed to initialize shm (Shared Memory Segment)
2. solution
$ mkdir /run/httpd
3. reason
为了让容器能够访问数据而不需要永久地写入数据,可以使用
tmpfs
挂载,该挂载仅存储在主机的内存中(如果内存不足,则为 swap)。当容器停止时,tmpfs
挂载会被移除。如果提交容器,则不会保存 tmpfs
挂载
4. ref
https://ma.ttias.be/apache-2-4-ah01762-ah01760-failed-to-initialize-shm-shared-memory-segment/
https://bugzilla.redhat.com/show_bug.cgi?id=1215667
# tmpfs
https://www.freedesktop.org/software/systemd/man/tmpfiles.d.html
https://zh.wikipedia.org/zh-tw/Tmpfs
https://adon988.logdown.com/posts/7801999-docker-tmpfs
https://blog.csdn.net/kikajack/article/details/79475168
https://unix.stackexchange.com/questions/13972/what-is-this-new-run-filesystem
沒有留言:
張貼留言