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