Linux Transport Koriyuki NFS server configuration

Source: Internet
Author: User
Tags egrep

About the NFS,RPC service principle, today is not introduced, direct operation steps.

########## #服务器端的配置 ##########

1.rpm-qa nfs-utils rpcbind Check for installation related software (Rpm-qa | Grep-e "Nfs-|rpcbind" forgot the name of the software, use this command to filter the contents of the quotes, grep-e =egrep)

2.yum Install Nfs-utils rpcbind-y

3./etc/init.d/rpcbind Start Rpcbind Service

4./etc/init.d/nfs Start NFS Service

5.rpcinfo-p 127.0.0.1 View Port mappings

6.netstat-lntup | grep rpcbind View service port number (LSOF-I:22)

7.chkconfig RPC on Chkconfig NFS on first starts RPC before starting NFS, because the RPC default is not set up because it starts first with NFS. It is a good idea to write startup information to/etc/rc.local (Chkconfig--level 3 NFS on means only 3-level boot)

8.chkconfig--list | Egrep "NFS, B|rpcbind" view

9.make-p/data

10.chown Nfsnobody.nfsnobody/data

11. Configure/etc/exports,vim/etc/exports, or echo "/data 192.168.25.0/24 (rw,sync,all_squash)" >>/etc/exports

12. On-premises test mount: mount-t nfs-o noatime,nodirtime,intr 192.168.25.128:/data/mnt

13.df-h to see if the mount was successful

############ #客户端的配置 ##################

The client installs Nfs,rpcbind, starts Rpcbind first, and then starts NFS.

Set up the directory, do not need to change the directory of the group, the mount operation, with the service side operation.

Set the boot-up NFS and Rpcbind services and set the boot mount.

To test

Linux Transport Koriyuki NFS server configuration

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.