The partition of the server should guarantee the following partitions, the purpose is simple, in order to manage convenient and system security.
/ Size is 1G, more waste / boot size is 200m, more waste / home size is 1G, more waste / TMP size can be determined according to the size of the disk, if the disk is small, can be 1G, large disk available 2G / USR size is 2-3g, / var size is the size of the hard disk. If it is about 40 g, this partition is minimized to 20G. / twice the memory of SWAP memory. / OPT other remaining spaces are OPT partitions all
Some explanations:
One. The server system is installed, with minimal installation, the system volume is between 400-800. This is the most basic installation and installation, there is a purposeful choice. That is to say only the basic package is installed. Such as kernel, development tool compilation tool, etc.
two. Never install a desktop system, whether it is KDE or a GNOME or other window management program. Because the graphic environment is too resource, it is also a big threat to the security of the server.
three. The erection of various servers should be compiled by themselves. It is extremely important to put it in the / OPT partition, which is very simple, and is convenient to manage. The normal and efficient operation of the system does not critical the system. Do not install the software into the / usr directory, because this is a dedicated partition of the system, too many small files, will slow down the server speed, we can put your own compilation installation Apache in this partition, you can also put mysql Put in this partition, etc.. So / OPT partitions are also large, except for / var zone, / OPT partitions should be the largest partition.
four. / VAR partition, mainly used to open FTP. So the partition is bigger, and the VAR partition should often view, such as logs, etc., learn to analyze logs. Time to clean up the log files you have already.
Fives. / TMP partition content should be cleaned frequently
Author: North South South