In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "what are the linux zoning methods". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn what linux zoning methods are.
First, for personal use
If it is for personal use, it is not necessary to divide it into so many districts, one district, or two districts.
If you divide it into a zone, you just need a root partition. The linux in my multi-system is all a partition.
Divided into two zones, one / boot partition, one root partition /
Second, for server use
With regard to the partition of the server, do not divide too much, just suit yourself, there are two better methods, suitable for two different people
People who like to use software management tools, pacman,yum,apt-get, etc.
This kind of person likes to install web server, mysql server, mail server and so on with the software that comes with the software.
/ boot partition 100m, which is absolutely enough.
/ home hard disk size * 4% increase or decrease according to the amount of user data
/ user hard disk size * 6% like to use management tools, but there are always things to compile and install yourself
/ swap internal size * 2
/ var hard disk size * 70% default installed file package is basically in here, as well as web service, mysql service, etc., so this partition should be large enough
/ tmp hard disk size * 10% is used as a server, there will be a lot of log files, so take it out separately. If it is cleaned regularly, it can be reduced appropriately.
/ give the rest to the root partition
Third, people who like to compile and install themselves.
Manual compilation and installation is more flexible, but if you upgrade the system, it may cause manually installed things to be unusable.
/ boot partition 100m, which is absolutely enough.
/ home hard disk size * 60% for example: I want to build a web server, build a nginx user group and users, and then, be sure to download the source code and put it under the root directory of the nginx user, the installation directory is placed under the / usr/local directory, and the code directory is also placed under the root directory of the nginx user instead of under / var, and the resulting log may also be placed under the root directory of the nginx user. All the things related to this server are placed under the user's directory, and the user's directory should be very large.
/ user hard disk size * 20% of the place where users install it, put it under / usr/local, so this directory is also larger.
/ swap internal size * 2
/ var hard disk size * 10% of the system files are placed under / var and partitioned separately to improve the performance of the server
/ give the rest to the root partition
Thank you for your reading, the above is the content of "what is the linux zoning method?" after the study of this article, I believe you have a deeper understanding of what the linux zoning method has, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.