RHCE test site induction

Source: Internet
Author: User
1. Determine whether the root user password is available (a complex set of letters and numbers must be entered. Otherwise, the host may not receive your configuration after the examination ), cannot be used to enter the closed-eye first ax single-user mode re-start to enter the Grub menu, pressa modify the Kernel Parameter to 1, and then change the password, by the way, to the running mode 5; re-start 2 second ax, you can use a graphical tool, system -- admin -- network, to configure network parameters statically as required, including ip, netmask, and gat.

1. Determine whether the root user password is available (a complex set of letters and numbers must be entered. Otherwise, the host may not receive your configuration after the examination ),

You cannot re-enter the Grub menu in single-user mode in closed-Eye mode. press a to change the Kernel Parameter to 1 and then change the password,

Change to running mode 5 by the way; restart

2. Configure the network parameters statically as required. Use the graphical Tool system -- admin -- network to complete the configuration,

Including ip, netmask, gateway, DNS, hostname can also be manually modified in/etc/sysconfig/network-script/ifcfg-eth0;

/Etc/reslv. conf;

/Etc/sysconfig/network: modify the application

3. Configure the YUM library client. For details, see the top article.

4. Open system-admin-firewall and security. disable firewall and enforce selinux.

By the way, yum: setroubelshoottd package

Yum install setr * to help provide warning information

1. fdisk

2. Disk logical volume

1. Create a logical volume:

Step 1: Create a partition and set the partition type to 8e. Run the following command:

Fdisk/dev/hda # enter the disk partition operation and set the partition type to 8e.

Partprobe # initialize the kernel

Step 2: create a physical volume:

Pvcreate/dev/hda {5, 6, 7} #5, 6, 7 refers to/dev/hda5,/dev/hda6,/dev/hda7 Partition

Step 3: Create a volume group:

Vgcreate vgname/dev/hda {5, 6, 7}

Step 4: Create a logical volume:

Lvcreate-L 1.5-n lvname vgname

Step 5: format the logical volume:

Mkfs. ext3/dev/vgname/lvname

Step 6: mount the file system:

Mount/dev/gvname/lvname/mnt/xxx

Ii. logical volume expansion:

1. view the volume group capacity:

Vgdisplay/dev/vgname # check how many PE blocks are unused

2. Add the logical volume:

Lvextend-l + 255/dev/vgname/lvname

3. Execute the extension;

Resize2fs/dev/vgname/lvname

4. Run the df-h command to check

Iii. logical volume reduction:

1. Uninstall the logical volume:

Umount/dev/vgname/lvname

2. Run the file system check:

E2fsck-f/dev/vgname/lvname

3. Reduce the number of file systems:

Resize2fs/dev/vgname/lvname 1024 M # reduce to 1024 M

4. Reduce the execution logic volume:

Lvreduce-L 1024 M/dev/vgname/lvname

5. Mount the file system and check the partition capacity:

Mount/dev/vgname/lvname/mnt/xxx

Df-h

3. Disk Quota

1) modify the/etc/fstab Parameter

/Dev/vg-test/lv-test/u01 ext3 defaults, usrquota 0 0

Mount-o remount/u01

2) quotacheck/u01

3) edquota-u wanggang

4) quotaon/u01

The instance sets disk quotas for quser1 and quser2, both of which are in the qgruop user group,

Each user shares 50 MB of disk space, and the minimum size is 45 MB,

1. Prepare the test environment and create users and user groups.

# Groupadd qgroup

# Useradd-m-g qgroup quser1

# Useradd-m-g qgroup quser1

# Passwd quser1

# Passwd quser2

2. Supported Disk Quota for file system creation.

# Vim/etc/fstab

/Dev/hda2/home ext3 defaults, usrquota, grpouota

Note that because the actual disk quota is read into the/etc/mtab file, you need to restart reboot. Or mount-o remount/dev/hda2.

# Grep '/dev/hda2'/etc/mtab/* Check mtab */

3. Scan disk user usage and generate important aquota. group and aquota. user

# Quotacheck-acvug

4. Disk Quota for startup

# Quotaon-avug

5. Edit the user's available space

# Edquota-u quser1

Filesystem blocks soft hard inodes soft hard

/Dev/sda2 0 45000 50000 0 0 0

# Edquota-p quser1 quser2/* quser1 has the same quota as quser2. Copy it directly */

6. Set the disk quota for startup. This step can be omitted in RedHat5.1.

# Vim/etc/rc. d/rc. local

/Sbin/quotaon-vug

7. # repquota-aug/* Check Disk Quota */

4. raid

Mdadm -- create/dev/md0-l 5-n 2-x 1/dev/sdb {7, 8, 9}

Mdadm -- detail

5. vsftpd Configuration

Both the FTP and NFS services are used to build file servers. In general, FTP is used to build file servers on the Internet, and NFS is used to build file servers on the enterprise intranet.

The FTP Server Installation process is as follows:

First install the vsftpd component and execute:

Yum install vsftpd

The default directory of vsftpd is/var/ftp/pub (it is best to create an independent partition for this directory). Files And Directories shared by ftp will be stored in this directory.

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.