Configuration of NFS Server under Linux

xiaoxiao2021-03-06  106

Type: System v-launched service

Software package: NFS-Utils

Process: NFSD, LOCKD, RPCIOD, RPC. {Mounted, rquotad, statd}

Script: NFS, NFSLOCK

Port: Assign port by the PortMap service (111)

Profile: / etc / exports

Auxiliary tool: portmap (must)

Related Commands: RPCINFO -P [ipadd]: View the RPC service provided by the server

Showmount -E: View service sharing directory

Server end:

1. (Etc/Exports format:

Directory option

Example: Sharing / Share directory to 192.168.0.x users

/ Share 192.168.0.0/24 (rw)

2. Start PortMap services:

Service Portmap Start [Restart]

3. Start NFS services:

Service NFS Start [Restart]

Client

1. Start PortMap service:

Service Portmap Start [Restart]

2. Mount the server-side shared directory (assuming server-side 192.168.0.1):

Mount -T NFS 192.168.0.1:/share / mnt / localshare

转载请注明原文地址:https://www.9cbs.com/read-126909.html

New Post(0)