Nfs on Ubuntu

来源:互联网 发布:微信淘宝客推广软件 编辑:程序博客网 时间:2024/05/23 15:01

 

Ubuntu  10.04

 

1:sudo apt-get install nfs-kernel-server  nfs-common  portmap

 

2:sudo dpkg-reconfigure portmap,选择 “否”

 

3:sudo vim /etc/exports

 

/home/xxx * (rw,sync,no_root_squash),*表示接受任意ip连接,这里如果设置有问题的话,会mount不上

 

 

4:sudo exportfs -r

 

5:sudo /etc/init.d/nfs-kernel-server restart

 

 

6:sudo mount -t nfs 10.1.1.202:/home/xxx /mnt/nfs (PC)

 

7:mount -o nolock 192.168.7.1:/home/lcq/emulator/root_fs ./nfs (board)

 

原创粉丝点击