[Technical dry] Zabbix | nfs shared use of local mirror

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

  1. Before you begin, we can look at a mirror on a local mount nfs-server case. 1. FIG
    [Technical dry] Zabbix | nfs shared use of local mirror
    see local mirror has been mounted up.

  2. We continue to look at whether the server has been successfully configured yum repository. Figure 2
    [Technical dry] Zabbix | nfs shared use of local mirror
    you can see a list of entries yum warehouse has 4305.

  3. Now look at the list of cases to mount the case of client-side and yum repository, shown in Figure 3.
    [Technical dry] Zabbix | nfs shared use of local mirror
    can be seen when a default installation of the machines mount and yum repository on the machine is not configured in the figure.

  4. In a server-side installation nfs and rpcbind related services. Figure 4.
    [Technical dry] Zabbix | nfs shared use of local mirror
    Here my machine has been installed by default these two services.

  5. Nfs Open service and the corresponding service on the firewall, as shown in FIG 5.
    [Technical dry] Zabbix | nfs shared use of local mirror

  6. Into the output file (vim / etc / exports), be written, as shown in FIG 6.
    [Technical dry] Zabbix | nfs shared use of local mirror
    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.

  7. See if the directory has been shared out, as 7
    [Technical dry] Zabbix | nfs shared use of local mirror
    can see what's behind it is exporting just mount the content.

  8. In the client-side to see whether it can receive the shared directory, as shown.
    [Technical dry] Zabbix | nfs shared use of local mirror

  9. Based on the appropriate client mount directory, and mount directly to a local shared server terminal, as shown in FIG 9
    [Technical dry] Zabbix | nfs shared use of local mirror
    can be seen to share has been successfully mounted on the local shared server terminal out of the mirror.

  10. Yum configuration repository (vi /etc/yum.repos.d/cdrom.repo) at /etc/yum.repos.d/ directory 10 shown in FIG.
    [Technical dry] Zabbix | nfs shared use of local mirror

  11. Clean up, yum repository refresh, then the query upload yum list entries warehouse, as 11
    [Technical dry] Zabbix | nfs shared use of local mirror
    can see the depot on the client side has 4305 entries, the configuration is successful.
    QQ online Zabbix Q group 177,428,068

Guess you like

Origin blog.51cto.com/14010230/2421114