CentOS partition law summary

  
 

In the CentOS partition, there is automatic partitioning, so there is no error in the CentOS partition, but there will be such a problem if the individual's own requirements are different. According to the principle of my site, I still have a certain understanding of the CentOS partition. Here my hard drive is 160G and the memory is 1G. My partitioning principle is: 1. swap 2G: Generally, the partition of this format is twice as large as the memory. 2. /5G ext3 format. 3. /boot to 100M This is the usual practice, I generally do not 4. 4.home 20G ext3 format 5. /var 20G :ext36. /usr 15G: ext37. /opt 20G: ext38. This file system; the system itself is No. I am setting up to use the web server in the future. I will introduce them one by one in the later settings. 9. /ftp The rest :ext310. This is for the ftp service. Note: Be sure to set the swap format. FreeBSD server partition (73G hard disk) This is a root file system (root filesystem). Any other file system will hang under the root directory. In the future, it will not store too much data here. In addition to some space after installation, the rest of the space is used to store temporary files. The system recommended space is: 512MSWAP This partition is the system disk swap partition (swap space). In general, the size of the swap space should be two to three times the size of the memory (RAM) on your system. However, if the memory is 2G, the swap area does not need 4G space. It doesn't make much sense to pass the 2G exchange area. It is recommended to use 3G, because the general server memory is 1G, but also consider the future upgrade /var /var directory will store files of different lengths, logs and other management purposes. Most of these files are read or written by FreeBSD every day while it is running. The /tmp system's temporary files are stored in /usr. All other files are usually stored in the /usr directory and under their subdirectories. Including source code, and some self-installed program files (they are placed in this directory by default) /boot stores the information loaded at system startup. Now FREEBSD6 has been hung up/down. No additional partitioning. Reference partition size: 1./2048m2.swap 3000m3./var 8000m4./tmp 2048m5./usr 8000m6./ftp 30000m7./www 16914m on raid 1: 1./boot 100M2.3./Tmp 4G4.swap 4G5./usr 4G-6G6./var 4-16G See if you need to save the system log, you need to be bigger, but normal 4G is enough 7./10G8./opt free space, install application 9./Var/log10. You can make a separate CentOS partition mount point • /usr This will save all program files (similar to the C:Program Files subdirectory). • /home There is a login subdirectory for each user (assuming that this server host will accommodate them). This prevents users from consuming all of the space on the hard drive, leaving room for other key components, such as various system log files. • /var The final save location of various system log files. Since system log files may be affected by users from outside the system (for example, people accessing an internet site), it is important to save them separately to another CentOS partition so that others can be prevented from generating A large number of login data items fill the entire hard disk and execute the “Denial of Service” (D o S) attack. • /tmp This will be used to save various temporary files. Because this subdirectory is designed to allow any user to write to it (similar to the C: TEMP subdirectory in Windows), we must ensure that this will not be caused by the abuse of some blundering users. The subdirectory expansion fills the entire hard disk; we use a separate method for opening a CentOS partition to ensure this. • Swap This is not a file system that users can access, it is to save virtual memory (virtual memory)

Copyright © Windows knowledge All Rights Reserved