Linux Server Partition

Source: Internet
Author: User
LinuxServer partition-Linux Enterprise Application-Linux server application information. For more information, see the following section. Let me talk about the server partition problem. If it is a PC, two partitions are used. One is/and the other is/swap. The swap size is about 1.5 times the memory size.

To facilitate management and system security, you must ensure the following partitions.
Take a 10 Gb hard drive as an example:

/The size is 1 GB, which is a waste.

/The boot size is 200 M, which is a waste.

/The home size is 1 GB, which is a waste.

The/tmp size can be determined based on the disk size. If the disk is small, it can be 1 GB, and a large disk can be 2 GB.

/Usr size: 2-3G

The/var size varies with the disk size. If it is about 40 GB, the minimum partition is about 20 GB.

/Swap memory is about twice.

/Opt the remaining space is all in the opt partition.

Notes:

1. The installation of the server system should be minimal and the system volume should be between and. This is the most basic installation. During installation, you must make a specific choice. That is to say, only install the basic software package. For example, the kernel and development tool compiling tools.

2. Do not install the desktop system, whether it is KDE, GNOME or other window management programs. Because the graphic environment occupies too much resources, it also poses a great threat to server security.

3. You need to compile and install the various servers on your own and put them in the/opt partition. This is extremely important. The purpose is very simple and convenient for management. It does not threaten the normal and efficient operation of the system. You cannot install the software in the/usr directory because it is a dedicated partition of the system. Too many small files will slow down the server speed, we can put the compiled and installed apache in this partition, or mysql in this partition. Therefore, the/opt partition should also be large. In addition to/var partitions,/opt partitions should be the largest partition.

4./var partition, mainly used to set up FTP. Therefore, the partition should be larger, and the var partition should be frequently viewed, such as logs. Learn to analyze logs. Regularly clear log files that have been viewed.

5. The content of the/tmp partition should be cleaned frequently.

From bbs.linuxsir.org by North South
Related Article

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.