CentOS Build Lamp server environment hard disk partition scheme

Source: Internet
Author: User
Keywords Hard disk partitions Lamp centos server environments
Tags centos closed code compiled default difference disk enterprise

CentOS is one of the Linux distributions that is compiled from the source code released by Red Hat Enterprise Linux in accordance with open source rules. Because of the same source code, some servers that require highly stable use centos instead of the commercial version of Red Hat Enterprise Linux. The difference is that CentOS does not contain closed source software.

We use Linux as a server in the process, often on the hard disk partition how to more reasonable distribution and feel puzzled, especially just start contact with Linux friends, the server in the hard disk space of the reasonable distribution of the partition, the heart also has no bottom, now listed the following program for everyone to learn! Of course, you can also according to their own needs to make a more reasonable formulation!

Boot 100MB kernel and boot files

mount point: Select "Boot"
File system type: Using the default EXT4 log file system
Size: Enter the size of the allocation, in megabytes
Other size options: Select fixed size.

Swap&http://www.aliyun.com/zixun/aggregation/37954.html ">NBSP; Swap space, typically twice times the server memory

/10G

mount point: Select/
File system type: Using the default EXT4 log file system
Size: Enter the size of the allocation, in megabytes
Other size options: Select fixed size.

/usr at least 5G, the entire Linux system is basically installed here. I like 10G.

mount point: Select/usr
File system type: Using the default EXT4 log file system
Size: Enter the size of the allocation, in megabytes
Other size options: Select fixed size.

/USR/LOACL/5 to 10 g is enough (Oracle do not pretend here, otherwise it will not play, hehe) We are accustomed to put the lamp to compile the installation of things here (this is the force of habit, the official recommended that we install OPT catalog)
The main is to put PHP website,
FileSystem won't have to be separated.
All remaining space is used to put PHP website, (example: Mount in/usr/local/apache2/htdocs/)

Heavy traffic attention to timely liquidation of temporary documents, in/tmp
Log files should also be noted

Summary: Hard disk partitions are often in the server began to put into use on the need to consider the problem, so in the process of planning in the prophase need to take into account the later use of the situation! This article gives you a better understanding of the server's formal production environment.

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.