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 > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article focuses on "sharing methods of Linux system partition". Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Now let the editor to take you to learn "Linux system partition method sharing" it!
Linux partition method, different people have different methods, anyway, there is no unified method. In terms of division, I think it is best to divide it according to its own actual situation. I've been playing linux for several years. Here's some of my experience in zoning.
I. 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
1, 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.
The code is as follows:
/ 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
People who like to compile and install by themselves
Manual compilation and installation is more flexible, but if you upgrade the system, it may cause manually installed things to be unusable.
The code is as follows:
/ 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
At this point, I believe you have a deeper understanding of "method sharing of Linux system partitioning". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
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.