: This article mainly introduces how to install lubuntuubuntu to optimize tmpfs, which causes startup failure of apache2nginx. if you are interested in PHP tutorials, please refer to it. When SSD is optimized,/var/log is placed in the ramdisk of tmpfs. restart causes the apache2 and nginx directories in/var/log to be lost, and apache2/nginx cannot be started.
Solution: in ~ /. Create these two directories in ~ /. Add at the end of bashrc. (Oh, use discovery to join ~ /. Bashrc. after the second attempt, the system will prompt that the directory creation error is returned. it is better to add/etc/rc. local)
Tip-> fix: add the/etc/rc. local file before exit 0.
# For apache2
Mkdir/var/log/apache2
# For nginx
Mkdir/var/log/nginx
Restart the machine
Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.
The above introduces the SSD installation of lubuntu/ubuntu to optimize tmpfs, resulting in apache2/nginx failure to start the problem, including some content, hope to be helpful to friends interested in PHP tutorials.