The third week of knowledge summary

Main points

  • rpm package management and use yum yum source warehouse and installer, as well as source code compilation
  • Disk works, manage MBR and GPT partition management, and file system and mount
  • swap space management, RAID works, LVM creation and management

  A: This week learning the rpm installation package management, how what programs are installed by the rpm query, and rpm installation package can not solve the problem of dependency, yum install later learned, yum install rpm dependency problem will be solved, regardless of dependence of the program can be installed directly, but you want to configure yum yum source warehouse, we can use the source on the network, or a third party eple source can also be directly set up a warehouse source, through http, ftp, https, or local file build, yum source address written on it you do want to use the address of the last word.

  Two: We source compiler to compile a simple httpd program, first download to a local source package, unzip with tar open, and then into the directory, run ./configure --prefix = / apps / httpd24 installation address specified here of course you can also specify a number of parameters, but this process may be prompted to install missing some packages, we put on the appropriate installation package installed on it, you can take over with make -j 2 began compiled, this process consumes a lot of CPU power, if you want to speed up a few more cores on it, provided that the cpu support. Finally, run make install on the installation is completed.
  Three: difference between MBR and GPT partition, what is their identity, and their partition table, how the backup for the MBR partition table, partition table if there is a problem of how to change the repair, there may be to another by copying a hard drive partition table a fast hard disk partition. For GPT partition table because it is taught new partition table, the system does not recognize so many before GPT partition table MBR partition information added to the system boot, and GPT partition table before and after the hard disk has a copy, to ensure safety. Hard disk file system, then the current mainstream is ext4, xfs, or course, there are other, hard to use, then you must specify the file system.

  Four: swap swap partition expansion, because it is an emergency memory so choose a faster partition a hard drive is recommended that the front tracks.
There are various RAID arrays manner, into RAID-0 RAID-1 RAID- 5 RAID -10 RAID-50 RAID-7 and the like, each approach has its own characteristics, the composition according to the needs of reasonable. LVM logical partition can not solve the problem of expansion, that is, between the hard disk partition and add a layer of volume group, if such partitions can be expanded less than in the volume group, the volume group can increase the insufficient capacity of the physical disk capacity, such add layer by layer to achieve the purpose of expansion of the partition, volume reduction and the hard disk you want to migrate is also possible, but xfs file format does not support volume reduction, ext series is possible, the actual volume reduction in production is also used less.

Guess you like

Origin blog.51cto.com/13449039/2403606