SSD installation of lubuntu/ubuntu optimized tmpfs, resulting in apache2/nginx failure to start

Source: Internet
Author: User
: 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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.