Linux Notes (Lab environment Setup)

Source: Internet
Author: User

Disks and partitions

Hard disk partitions are divided into primary partitions, extended partitions, and logical partitions. A hard disk can have up to 4 primary partitions, where one primary partition can be replaced with an extended partition, and a hard disk can have only one extended partition, where multiple logical partitions may be partitioned within the extended partition.

The disk device name is as follows:

-The system's first IDE Interface's hard disk is called /dev/hda and so on . The partition is represented by a numeric number. such as:/dev/hda1/dev/hdb2

-Number 1~4 is reserved for primary or extended partitions, and the logical partition number starts with 5 .

the name of the-sas/scsi/sata/usb interface hard disk is expressed in /dev/sd[a-p].

High-scale enterprise partitioning scheme:

/boot 200MB

/50GB

/var 20GB

Swap 2048

/usr 100gb/usr/local

/Home 100GB

/ and swap Most important must exist

Network configuration

/etc/sysconfig/network-scripts/ifcfg-eth0

Device=eth0

Bootproto=static

Hwaddr=08:00:27:f0:95:dd

ipaddr=192.168.1.150

netmask=255.255.255.0

gateway=192.168.1.1

Onboot=yes

Changing the language environment

/etc/sysconfig/i18n

Toggle Boot Level

/etc/inittab

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.