How to configure the NFS server under Fedora

Source: Internet
Author: User

Perform the following operations under the root account:

1. Yum search TFTP

2. Select tftp_server for Installation

3. Modify the/etc/xinetd. d/TFTP File

Modify the configuration file as follows and set the TFTP service directory to/home/kernel. Remember to disable = No

Service tftp

{

Disable = No

Socket_type = dgram

Protocol = UDP

Wait = Yes

Disable = No

User = root

Server =/usr/sbin/in. tftpd

Server_args =-S/home/kernel

Per_source = 110.

CPIs = 100 2

Flags = IPv4

}

4. Yum search xinetd

5. Select xinetd for Installation

6. Modify/etc/exports and add/root/nfsroot * (RW, no_root_squash)./root/nfsroot is the directory to be mounted.

7. Restart related services: Service NFS restart and service xinetd restart

8. Disable the firewall lokkit-disabled of Fedora.

9. Modify/etc/hosts. Allow

### NFS daemons

Portmap: 192.168.1.

Lockd: 192.168.1.

Rquotad: 192.168.1.

MOUNTD: 192.168.1.

STATD: 192.168.1.

10. add the NFS service to the startup service. Otherwise, a service NFS restart must be executed every time you start the service. You can view related commands through man service, if you do not have a GUI, you can use ntsysv to start related services. If you have a GUI, you can use system → administration → service to start services.

11. Then you can test it through Mount-T nfs-O nolock 192.168.1.127:/root/nfsroot/MNT.

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.