YUM server construction in RedHat

Source: Internet
Author: User
A large number of machines need to package and configure the snmp service. yast can be used in SUSE and YUM can be used in RedHat. This article is the YUM configuration document under Redhat. I. Set up NFSServer10.1.123.60 to view the mounted disc [root@localhostRHEL_5.4x86 _ 64DVD] # df-hFilesystemSizeUsedAvailUse % Mou

A large number of machines need to package and configure the snmp service. yast can be used in SUSE and YUM can be used in RedHat. This article is the YUM configuration document under Redhat.

1. Set up an NFS Server

10.1.123.60

View attached discs

[Root @ localhost RHEL_5.4 x86_64 DVD] # df-h

FilesystemSizeUsed Avail Use % Mounted on

/Dev/mapper/VolGroup00-LogVol00

97G9. 8G82G11%/

/Dev/sda199M13M82M14 %/boot

Tmpfs2.020.2.0g0 %/dev/shm

/Dev/hdc3.4G3.4G0 100%/media/RHEL_5.4 x86_64 DVD

Create an rpm package directory, copy the disc, copy the Server, VT, Cluster, and ClusterStorage directories in the RHEL 5 CD to/var/ftp/pub (if you do not use virtualization or the three directories after the Cluster, you cannot copy them ).

 

Mkdir-p/yumrepo/RHEL5.4

# Cd/media/RHEL_5.4 x86_64 DVD/

Cp-r/media/RHEL_6.0 x86_64 Disc 1/*. */yumrepo/RHEL6

[Root @ localhost RHEL_5.4 x86_64 DVD] # cp-ar */yumrepo/RHEL5.4/

 

 

 

 

Check whether the installation package required by nfs is installed

[Root @ localhost yumrepo] #Rpm-qa | grep nfs

Nfs-utils-lib-1.0.8-7.6.el5

Nfs-utils-1.0.9-42.el5

[Root @ localhost yumrepo] #Rpm-qa | grep portmap

Portmap-4.0-65.2.2.1

 

Configure nfs shared parameter files

[Root @ localhost yumrepo] #Vi/etc/exports

Add the following parts

/Yumrepo/RHEL6/* (ro, sync, no_root_squash, no_all_squash)

 

[Root @ localhost yumrepo] # more/etc/exports

/Yumrepo/RHEL6/* (ro, sync, no_root_squash, no_all_squash)

 

Reload the parameter fileTips for restarting the nfs service

[Root @ localhost yumrepo] #Exportfs-rv

Exporting *:/yumrepo/RHEL6

View shared directories

[Root @ localhost yumrepo] #Showmount-e

Mount clntudp_create: RPC: Program not registered

Nfs service unavailableSo start it.

[Root @ localhost yumrepo] #Service nfs start

Starting NFS services: [OK]

Starting NFS quotas: [OK]

Starting NFS daemon: [OK]

Starting NFS mountd: [OK]

View the shared directory again

[Root @ localhost yumrepo] #Showmount-e

Export list for localhost. localdomain:

/Yumrepo/RHEL6 *

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.