Ubuntu 12.04 LTS nfs-util

Ubuntu 12.04 LTS nfs-util 安裝及配置手記
Note for Installing nfs-util on Ubuntu 12.04 LTS

寫在前面:you have to know first:
【Client端install the nfs-common package. Server端install nfs-kernel-server】
is recommended.


1. Intall nfs-kernel-server:
   $ apt-get install nfs-kernel-server


2. Create a folder:
   $ mkdir -p /opt/share


3. Change Permission:
   $ chmod -R 777 /opt/share

 rest

4. Configure /etc/exports:
   $ sudo chmod a+w /etc/exports   #change "read only" into writeable.server

   opt/share 10.112.18.0/255.255.255.0(rw,no_root_squash)


5. Configure /etc/hosts.allow:
   portmap:10.112.18.0/255.255.255.0


6. Configure /etc/hosts.deny:
   portmap:ALL


7. Restart two services:
   service portmap restart
   service nfs-kernel-server restart
-----
8. Insatll nfs-common on another Ubuntu:
   apt-get install nfs-common


9. Create new folder:
   mkdir ~/testget

 

 

 

 

 

·······························································it

 

 

 

客戶端的掛載
經過mount命令掛載
mount 192.168.1.162:/home/stb /mnt/stb io

相關文章
相關標籤/搜索