[root@freescale component]# mount -o nolock 192.168.1.126:/home/MyShare /mnt/nfs/
mount: 192.168.1.126:/home/MyShare failed, reason given by server: Permission denied
root@susan-ubuntu:~# cd /etc
root@susan-ubuntu:/etc# gedit exports
/home/MyShare *(rw,sync,no_root_squash)
/home/Others *(rw,sync,no_root_squash)
restart nfs server
# sudo /etc/init.d/nfs-kernel-server start
check nfs server mount
# showmount -e localhost
1. Install
$ sudo apt-get install nfs-common
$ sudo apt-get install nfs-kernel-server
2. 設定 /etc/exports (For example: 將/mnt/iso share給all net使用)
$ sudo vi /etc/exports
/mnt/iso *(ro,sync)
3. 啟動 nfs server
$ sudo /etc/init.d/nfs-kernel-server start
FC6
重啟
/etc/init.d/nfs restart
檢查
exportfs
http://linux0101.blog.hexun.com.tw/8225946_d.html
4. 檢查
$ showmount -e localhost
成功的話應該可以看到這樣的訊息:
Export list for localhost:
/mnt/iso *
沒有留言:
張貼留言