Linux nfs mounting configuration and linux nfs mounting configuration
Nfs mounting is not described here. Follow the steps in sequence. A picture has a truth.
Server Configuration: (ip 192.168.88.85)
1. Check the software nfs package installation
Rpm-qa | grep nfs
2. Check whether rpcbind is installed
3. If installation is not completed:
4. Check whether exports files exist.
Cat/etc/exports
If the file exports is not manually created under etc, the content is: folder directory to be mounted
You do not have to manually create files. The content added in is
/Opt/tp-manager/data is the permission of the Directory * (rw, no_root_squash) to be mounted (... self-check)
Server configuration complete
Client: the nfs jar package must be consistent with the one or two operations on the server.
3. Check whether the server is mounted. (If NO mounting is displayed, check the precautions)
Showmount-e 192.168.88.15
4. Client mount command: mount-t nfs 192.168.88.15:/opt/tp-manager/data/opt/tp-worker/data
/Opt/tp-manager/data is the path from the server path to the client:/opt/tp-worker/data
Mount completed:
Note:
The Operation Command is required for the server to modify the exports file.
Exportfs-rv (remount)
Service rpcbind restart
Service nfs restart
Service iptables stop (mandatory for strong Fire Prevention)
If the client wants to cancel mounting: umount-f/opt/tp-worker/data