How to partition the installation of Linux to consider how to take the test?

Source: Internet
Author: User

For the list of Centos7 folders that use the minimized installation, note that the linked folder will not be counted when the statistics occupy space;

Watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvcwlkaxpp/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/dissolve/70 /gravity/center ">

Take a look at the Footprint (link folder does not appear)



Ok here, do you know how much each is enough?


Here again look at the use of a few years of regular online webserver folder (Ubuntu)



Take a look at the space occupied (with mysql,nginx,php)

Du-h-D 1796K    ./run9.4m    ./etc4.0k/opt1.2g/usr640m./lib4.0k.    / cdrom172k    ./build5.0m.    /tmp4.0k/mnt8.0k/srv4.0k./lib649.8m.    / Rootdu:cannot accessâ./proc/2121/task/2121/fd/4â: No such file or Directorydu:cannot ACCESSÂ./PROC/2121/TASK/2121/FDI nfo/4â: No such file or Directorydu:cannot accessâ./proc/2121/fd/4â: No such file or Directorydu:cannot accessâ./proc/ 2121/fdinfo/4â: No such file or Directorydu:cannot accessâ./proc/23692/task/23692/fd/26â: No such file or DIRECTORYDU:C Annot accessâ./proc/23692/task/23692/fd/35â: No such file or Directorydu:cannot accessâ./proc/23692/task/23692/fd/39â : No such file or Directory0       ./proc11m     ./sbin16k     ./lost+found264k    /home86m.     /boot328g    ./var4.0k.    /dev0.       /sys330g    .
Take a look at the occupancy in VAR (MySQL data is in Lib, www is site with some related backup)

Lltotal 72drwxr-xr-x root root 4096 Sep 02:50./drwxr-xr-x root root 4096 Sep 23 02:45.  /DRWXRWXRWX 3 root root 4096 Sep 06:33 backups/drwxr-xr-x root root 4096 Sep 19:04 CACHE/DRWXRWSRWT 2 Root whoopsie 4096 Nov 06:25 crash/drwxr-xr-x root root 4096 Sep 19:02 lib/drwxrwsr-x 2 root staff 40 LOCAL/LRWXRWXRWX 1 root root 9 Sep 02:50 lock-/run/lock/drwxrwxr-x root syslog 409 6 Nov 06:47 log/drwx------2 root root 16384 May 21 201 Lost+found/drwxrwsr-x 2 1 MAIL/DRWXRWSRWT 2 root whoopsie 4096 Sep 02:44 metrics/drwxr-xr-x 2 root root 4096 May OPT/LRWXRWXRW X 1 root root 4 Sep 02:50 Run-/run/drwxr-xr-x 5 root root 4096 Sep 04:01 spool/drwxrwxrwt 2 ro OT root 4096 Sep 03:04 tmp/drwxr-xr-x root root 4096 Nov www/
Occupy space
/var# Du-h-D 116G     ./lib9.9g    /log41g     .     /backups4.0k./opt4.0k./local36k. /lost+found4.0k    ./mail17m.     /crash639m    /cache4.0k    /metrics262g./www4.0k./tmp328g    .

Var/www There's nothing more to say.

Take a look at other things besides MySQL, which occupy more

/var# Du-h-D 1/var/lib/12m/var/lib/php54.0k/var/lib/misc15g/var/lib/mysql8.0k/var/lib/update-manager8 .0k/var/lib/sudo8.0k/var/lib/ureadahead496k/var/lib/usbutils20k/var/lib/update-notifier74m/var/lib/m Locate12k/var/lib/sgml-base12k/var/lib/locales140k/var/lib/ucf8.0k/var/lib/vim4.0k/var/lib/update-rc . D20k/var/lib/initramfs-tools14m/var/lib/aptitude52k/var/lib/belocs4.0k/var/lib/initscripts4.0k/var /lib/dhcp4.0k/var/lib/ubuntu-release-upgrader32k/var/lib/apache24.0k/var/lib/git8.0k/var/lib/logrotate4.0 K/var/lib/landscape4.0k/var/lib/os-prober4.0m/var/lib/nginx12k/var/lib/accountsservice24k/var/lib/li    bxml-sax-perl12k/var/lib/xml-core8.0k/var/lib/dbus3.7m/var/lib/apt-xapian-index4.0k/var/lib/ntpdate8.0k /var/lib/apparmor4.0k/var/lib/python48k/var/lib/nssdb32m/var/lib/dpkg146m/var/lib/apt8.0k/var/lib/ Pycentral4.0k/var/liB/plymouth4.0k/var/lib/libuuid28k/var/lib/polkit-128k/var/lib/pam8.0k/var/lib/urandom32k/var/lib/sy stemd4.0k/var/lib/insserv16g/var/lib/


No more eyes on the Ali go to the server

[[email protected]/]# lltotal 96dr-xr-xr-x.  2 root root 4096 Sep 15:55 bindr-xr-xr-x. 4 root root 4096 Jul bootdrwxr-xr-x 5 root root 4096 Sep 17:20 datadrwxr-xr-x root root 3220 Oct 9 0 8:39 Devdrwxr-xr-x.  Root root 4096 Oct 9 08:39 etcdrwxr-xr-x.  4 root root 4096 Sep 17:17 homedr-xr-xr-x.  8 root root 4096 Mar libdr-xr-xr-x.  7 root root 12288 Sep 15:54 lib64drwx------.  2 root root 16384 Dec lost+founddrwxr-xr-x.  2 root root 4096 Sep mediadrwxr-xr-x.  2 root root 4096 Sep mntdrwxr-xr-x.  2 root root 4096 Sep optdr-xr-xr-x, root root 0 Oct 9 16:39 procdr-xr-x---.  5 root root 4096 Sep 16:56 rootdr-xr-xr-x.  2 root root 4096 Sep 15:55 sbindrwxr-xr-x.  2 root root 4096 Dec selinuxdrwxr-xr-x.  2 root root 4096 Sep srvdrwxr-xr-x root root 0 Oct 9 16:39 sysdrwxrwxrwt. 3 root root 4096 Oct 9 08:39 tmpdrwxr-xr-x. Root root 4096 Dec USRDRwxr-xr-x. Root root 4096 Sep 16:36 var

Occupy space

[Email protected]/]# du-h--max-depth=1164k./dev5.8m./bin0./sys4.0k./mnt17m     ./boot245m    ./var278m    /root778m    ./selinux63m     ./data9.0m./sbindu    : Cannot access './proc/8146/task/8146/fd/4 ': No such file or Directorydu:cannot access './proc/8146/task/8146/fdinfo/4 ': No such file or Directorydu:cannot access './proc/8146/fd/4 ': No such file or Directorydu:cannot access './PROC/8146/FDI NFO/4 ': No such file or Directory0       ./proc6.6m    ./etc8.0k    .    /tmp239m./lib4.0k    ./media56k     ./home20k.     /lost+found4.0k.    /srv1.7g    .


Ok. Is it possible to know how to divide it here?

Use it long enough. Or look at other people's role. Server. It's very easy to know how to divide.

[Email protected]/]# du-h--max-depth=1164k./dev5.8m./bin0./sys4.0k./mnt17m     ./BOOT.

How to partition the installation of Linux to consider how to take the test?

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.