Linux NFS Service installation

Source: Internet
Author: User

NFS is also understood as a file share for the network file system , by installing the NFS service on the server, and the client is mounting the directory on the server by hanging it locally to enable file sharing

1. See if NFS is installed

Rpm-qa |grep NFS

2. Install NFS

Yum-y Install Nfs-utils

3. turn on the service

/etc/init.d/nfs start

/etc/init.d/rpcbind start

4. Configure Exports

Vi/etc/exports

/home/zuzhao 192.168.1.0 255.255.254.0(rw)

5. turn off the firewall

Service Iptbales Stop

7. Restart NFS

Service NFS Restart

8. Server directory overwrite permissions

chmod 777/home/zuzhao

9. mount the client

Mount-t NFS 192.168.1.52:/home/zuzhao//tmp/zuzhao/

Error

Mount.nfs:access denied by server whilemounting 192.168.1.52:/home/zuzhao/you has new mail in/var/spool/mail/root

View error Log

Cat/var/log/messages |grep Mount

The error log is as follows

Dec 14:29:04 CactiEZ rpc.mountd[1770]:failed to register (MOUNTD, 3, TCP6): Svc_reg () err:RPC:Remote system Error-co Nnection refused

Prompt for the port is too large for the server to view the port as follows

NETSTAT-APN | grep mount

[Email protected] zuzhao]# NETSTAT-APN | Grepmount

TCP 0 0 0.0.0.0:36220 0.0.0.0:* LISTEN 26820/rpc.mountd

TCP 0 0 0.0.0.0:36162 0.0.0.0:* LISTEN 26820/rpc.mountd

TCP 0 0 0.0.0.0:54157 0.0.0.0:* LISTEN 26820/rpc.mountd

TCP 0 0::: 37660:::* LISTEN 26820/rpc.mountd

TCP 0 0::: 54600:::* LISTEN 26820/rpc.mountd

TCP 0 0::: 52239:::* LISTEN 26820/rpc.mountd

UDP 0 0 0.0.0.0:38960 0.0.0.0:* 26820/rpc.mountd

UDP 0 0 0.0.0.0:51648 0.0.0.0:* 26820/rpc.mountd

UDP 0 0 0.0.0.0:32975 0.0.0.0:* 26820/rpc.mountd

UDP 0 0::: 47082:::* 26820/rpc.mountd

UDP 0 0::: 41836:::* 26820/rpc.mountd

UDP 0 0::: 59969:::* 26820/rpc.mountd

Here's how to fix it:

Modifying a configuration file

Vi/etc/exports

/home/zuzhao * (Insecure,rw,async,no_root_squash)

Add above

Restart NFS service

Re-mount

[Email protected] tmp]# mount-t nfs192.168.1.52:/home/zuzhao//tmp/zuzhao/

You have new mail in/var/spool/mail/root

[[email protected] tmp]# ls

CactiEZ ins.log ks-script-klcqli ks-script-klcqli.log yum.log Zuzhao

[[email protected] zuzhao]# ls

1.txt

[Email protected] zuzhao]#

Complete!


This article is from the "Tigase Installation and testing" blog, so be sure to keep this source http://jiazuzhao.blog.51cto.com/1123655/1885511

Linux NFS Service installation

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.