Ubuntu under NFS,TFTP Service Setup

Source: Internet
Author: User

Environment: Ubuntu

I. Building an NFS server

(1) Installation:

sudo apt-get install nfs-kernel-server #安装NFS服务器端

sudo apt-get install Nfs-common #安装NFS客户端

(2) Add NFS shared directory

1) Create a shared folder, such as/nfsroot:

Mkdir/nfsroot

sudo chmod-r 777/nfsroot

sudo chmod-r nobody/nfsroot

        

2) Add share path: sudo vi/etc/exports

Add a row at the end of the file,/nfsroot is a shared directory

/nfsroot * (Rw,sync,no_root_squash)

        

(3) Start the NFS service

        

(4) Testing Server for NFS

Restarting Server for NFS

1) View NFS server IP:192.168.1.104

        

2) Mount the NFS server's shared directory on the test machine

        

Two. Build a TFTP server

(1) Installation: sudo apt-get install TFTPD-HPA Tftp-hta

        

(2) Change configuration file: Vi/etc/defualt/tftp-hta

        

(3) Create TFTP root directory

        

(4) Start TFTP service: sudo services tftpd-hpa start

        

(5) Test TFTP service

Restart the TFTP server

1) Create a test file on the TFTP server: echo "Hello" >/tftpshare/hello.txt

        

2) test Machine Connection

        

Ubuntu under NFS,TFTP Service Setup

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.