Application:
In a production environment you need to configure a large number of remote operation yum repository machine, you can quickly get to the mirror, save a lot of time to upload.
surroundings:
Device Name
IP address of the
service
operating system
nfs-Server
172.16.1.103
NFS server
Centos 7.0
nfs-Client
172.16.1.116
NFS Client
Centos 7.0
-
Before you begin, we can look at a mirror on a local mount nfs-server case. 1. FIG
see local mirror has been mounted up. -
We continue to look at whether the server has been successfully configured yum repository. Figure 2
you can see a list of entries yum warehouse has 4305. -
Now look at the list of cases to mount the case of client-side and yum repository, shown in Figure 3.
can be seen when a default installation of the machines mount and yum repository on the machine is not configured in the figure. -
In a server-side installation nfs and rpcbind related services. Figure 4.
Here my machine has been installed by default these two services. -
Nfs Open service and the corresponding service on the firewall, as shown in FIG 5.
-
Into the output file (vim / etc / exports), be written, as shown in FIG 6.
to this directory file read and write shared manner 172.16.1.0/24 network of machines, where / mnt / cdrom local mirror mount directory, to see when using the command df -HT above. -
See if the directory has been shared out, as 7
can see what's behind it is exporting just mount the content. -
In the client-side to see whether it can receive the shared directory, as shown.
-
Based on the appropriate client mount directory, and mount directly to a local shared server terminal, as shown in FIG 9
can be seen to share has been successfully mounted on the local shared server terminal out of the mirror. -
Yum configuration repository (vi /etc/yum.repos.d/cdrom.repo) at /etc/yum.repos.d/ directory 10 shown in FIG.
- Clean up, yum repository refresh, then the query upload yum list entries warehouse, as 11
can see the depot on the client side has 4305 entries, the configuration is successful.
QQ online Zabbix Q group 177,428,068