Build an NFS server under Fedora

Source: Internet
Author: User

Fedora19 installing NFS and connecting to Development Board zyl-1014-5-6

Install and start the NFS service
Install NFS service # Yum install nfs-utils * # Yum install Portmap

Disable the default firewall of fedora, # systemctl stop firewalld
Enable NFS service # systemctl enable nfs-server.service
Ln-s '/lib/systemd/system/nfs-server.service'/etc/systemd/system/multi-user.target.wants/nfs-server.service'
Check whether the NFS service is enabled
# Systemctl is-enabled nfs-server.service
Enabled

Configure the file to be exported from NFS:

# Vi/etc/exports

/Root/rootfs * (RW, sync, no_root_squash)


Start NFS service # systemctl start nfs-server.service
Or use the service command # service nfs-server restart
Redirectingto/bin/systemctl restart nfs-server.service
View NFS service status # systemctl status nfs-server.service
Nfs-server.service-NFS server
Loaded: loaded (/lib/systemd/system/nfs-server.service; Enabled)
Active: active (running) since Sun, 29 Apr 2012 11:08:59 + 0800; 1 min 46 s ago

Local test # showmount-e 192.168.0.117 Test Result:


# Mount-T 192.168.0.117:/root/rootfs/mnt/nfs

Error 1:

For the last error: Mount. NFS: Access denied by server whilemounting

192.168.0.117:/root/work, based on the URL:

Http://liuzhigong.blog.163.com/blog/static/17827237520115305226932/

Modify configuration file/Etc/exports, JoinInsecureOption

/Root/rootfs * (insecure, RW, sync, no_root_squash)

# Mount-T nfs192.168.0.117:/root/rootfs/mnt

Error: Mount. NFS: Connection timed out

Slove: http://bbs.chinaunix.net/thread-4121859-1-1.html:disable Firewall

Http://bbs.csdn.net/topics/360017569

Disable the default firewall of fedora, # systemctl stop firewalld:

Use ## Mount-T nfs-O tcp192.168.0.117:/root/rootfs/mnt/nfs

# Mount-T nfs-onolock 192.168.1.104:/root/rootfs/mnt/nfs

View the information through DF-h:

Reference: http://my.oschina.net/davisqi/blog/76124

Http://blog.chinaunix.net/uid-9679478-id-4145508.html

Uninstall:

# Umount/mnt

 

Note: restart the NFS service every time you modify the/etc/exports file. After local showmount test, remount.

 

Set Development Board:

To enable network sharing between the arm Development Board and PC, you must connect the ARM development board to the PC through a network cable.

And set the arm Development Board and PC in the same network segment, we can use the following command to view and modify the ARM development board

IP Address:

Ifconfig // view the Ethernet IP address,

Ifconfig eth0 (Port name) (IP address 1) // the IP address 1 must be in the same network segment as the pc ip address.

Test: ping the IP address of a PC to check whether the Ping is successful.

Note: 1, # systemctlstop firewalld

2. Enable the NFS service.

3. Test NFS

2. Test on the host

3. Mount

 

Mount the arm Development Board and PC:

Run the following command:

Mount-T nfs-O nolock192.168.1.104:/root/rootfs/mnt/nfs

Build an NFS server under Fedora

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.