Configure NFS under fedora17

Source: Internet
Author: User

1. download and install the NFS component
# Su Root
# Yum install Portmap nfs-utils
 
2. Open the NFS configuration file
# Vi/etc/exports
 
3. Add one row as follows:
/Study/upmagic6410 * (sync, RW, no_root_squash)
 
PS: * indicates all IP addresses. If an IP address is specified for access, it can be directly replaced with the specified IP address;
RW indicates the read/write permission;
No_root_squash indicates that when the user logging on to the NFS host using the shared directory is root, the permission will be converted to the anonymous user (nobody );
 
4. Save the exports
(: WQ)
 
5. Create a shared directory and Set permissions
# Mkdir/study/upmagic6410
# Chmod 777/study/upmagic6410
 
6. Disable the firewall (you can also configure the firewall)
# Setup
Uncall enable in the firewall option, save and exit
 
7. Configure boot and start nfs-Server
# Systemctl enable nfs-server.service
 
PS: Check whether nfs-server is enabled
# Systemctl is-enabled nfs-server.service
 
PS: the command to manually enable or disable NFS-server is
# Systemctl start nfs-server.service
# Systemctl stop nfs-server.service
 
10. mount NFS on other Linux Hosts
# Mount x. x:/study/upmagic6410/mnt/nfs
 
PS: x. x is the IP address of the NFS service.

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.