Server for NFS configuration (file sharing between Unix/linux operating systems)--linux

Source: Internet
Author: User

Related packages:
portmap-4.0-65.2.2.1nfs-utils-1.0.9-40.e15.i386.rpm
Related daemons:
RPC.NFSD//Management client can log in to server RPC.MOUNTD//user authentication Portmap//port mapping work
To start NFS:
Service Portmap startservice NFS Start
configuration file/etc/exports:
Example 1: /tmp1 192.168.0.4/24 (RO) localhost (rw) * (RO) //Shared directory Host (permissions) Note: host expression: 192.168.0.3 or 192.168.0.0/24 or 192.168.0.0/255.255.255.0 permission expression: RO (read-only) RW (read-write) sync (synchronous)
To view NFS Server information:
showmount-e 192.168.0.3 //View all shared directories of the 192.168.0.3 server
to mount to the client:
mount-t NFS 192.168.0.3:/exports/rhe1/mnt/nfs //mount the/exports/rhe1 shared directory under the NFS server to the local/mnt/nfs directory
Client boot automatically mounts NFS:
192.168.0.3:/exports/rhe1/mnt/nfs NFS Default 0 0//Add this line to the/etc/fstab file mount-a//Then reload fstab so that it takes effect /c2>
Troubleshooting NFS:
in client execution: example 2:rpcinfo-u 192.168.1.102 portmap//IP addresses are NFS server addresses Rpcinfo-u 192.168.1.102 NFS Rpcinfo-u 192.168.1.102 Mountd Example 3:nfsstat-c
server-Side Execution: Example 4:nfsstat-s
General Steps for NFS Troubleshooting: 1. Check that NFS client and server communication is normal (ping) 2, check if NFS service is functioning correctly on NFS Servers 3, verify that the/etc/exports file on the NFS server has syntax error 4, Check that client Services for NFS are healthy 5, verify that the/etc/fstab is configured correctly

Server for NFS configuration (file sharing between Unix/linux operating systems)--linux

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.