Linux Network services -NFS Shared Services
I. introduction to NFS
Port number: TCP,UDP 111 Ports
TheNFSNetwork File system, a Network File system protocol based on TCP/IP transmission, was originally Company Development. By using the NFS protocol, clients can access shared resources on a remote server as if they were accessing a local directory.
NFS does not have a user authentication mechanism, and the data is transmitted in clear text on the network, so the security is very poor, generally can only be used in the LAN. The implementation of the NFS service relies on the RPC(remoteprocess Call) remoting mechanism, To complete the remote-to-local mapping process.
in the The CentOS 6 system requires the installation of nfs-utils,rpcbind packages to provide NFS sharing Services, the former for NFS shared Publishing and access, which is used for RPC support.
ii. Publishing shared resources using NFS (server side)
Modify the Master profile /etc/exports(this file is an empty file)
RW: Read and write
RO: Read-only
Sync: Synchronous Write
No_root_squash: gives the local root permissionwhen the client is accessed as root (default is root_squash , will act as Nfsnobody user down Right treatment)
wildcard characters are allowed:? *
three
,
accessing in the client
NFS shared resources
Modify the 192.168.1.108 machine /crushlinux/index.html file, refresh the browser to see if it is synchronized
Modify the/etc/fstab table to enable automatic mount on boot
Linux network services 12--NFS Shared Services