Time: 2020-12-08 www.sdyserver.cn
Apache startup error No space left on device: AH00023 how to solve

Apache startup error No space left on device: The AH00023 error may be caused by the process. Although I don't know the reason, the solutions provided on the Internet can indeed solve our problem. Let's take a look.


For this type of error, it is caused by the ipc semaphore of the Linux system. When Apache is started, many child processes will be created. They communicate with the child process through semaphores.


Semaphore introduction:


Semaphore is also called semaphore, it is used to coordinate data objects between different processes, and the main application is inter-process communication in shared memory mode. In essence, a semaphore is a counter, which is used to record access to a resource (such as shared memory); shared memory is the fastest way to communicate between processes running on the same machine, because data does not need to be in Copy between different processes. Usually a shared memory area is created by one process, and other processes read and write this memory area. In the Linux system, the common way is to realize the use of shared memory for storage through the shmXXX function family.


Solution:


/etc/init.d/httpd stop stop apache service

for i in `ipcs -s | awk'/apache startup process user/ {print $2}'`; do (ipcrm -s $i); done

# /etc/init.d/httpd start start apache


Later, the solution on the Internet was also compiled for your reference.


AH00016: Configuration Failed

ipcs -s | grep apache | awk '{print $2}' | xargs -n 1 ipcrm-

ipcs -s | grep web | perl -e'while (<STDIN>) {@a=split(/\s+/); print `ipcrm sem $a[1]`}'


The above content is about the solution of Apache startup error No space left on device: AH00023, I hope you like it.