Linux apache no space left

When you see the error;

No space left on device: mod_rewrite: could not create rewrite_log_lock

in your Apache logs or when Apache fails to start, try the following;

ipcs -s

—— Semaphore Arrays ——–
key semid owner perms nsems
0×00000000 327680 nobody 600 1
0×00000000 1540097 nobody 600 1
0×00000000 6225922 nobody 600 1
0×00000000 9175043 nobody 600 1
0×00000000 9306116 nobody 600 1
0×00000000 10027013 nobody 600 1

If you see more than 5 of them, you may need to clear them with the following command;

ipcs -s | perl -ane '/^0x00000000/ && `ipcrm -s $F[1]`'

你可能感兴趣的:(Linux apache no space left)