NFS未授权访问

默认端口:2049

root@windows7:~# showmount -h
Usage: showmount [-adehv]
       [--all] [--directories] [--exports]
       [--no-headers] [--help] [--version] [host]

查看

  • showmount -e server_ip
root@windows7:~# showmount -e 54.1*.*
Export list for 54.1*.*:
/home/zxin10/was/tomcat/webapps/uniportal/nfs *
/home/vpshare                                 *
/var/vmc/nfslock                              *

挂载

  • mount
root@windows7:~# mkdir dirtmp
root@windows7:~# mount -t nfs 54.1*.*:/home/vpshare  dirtmp
root@windows7:~# ls dirtmp
cn_windows_10_enterprise_x64_dvd_6846957.iso  vmtool_kvm_win_V6.03.02P1.iso
virtio-win-V3.18.13.9fb5959b-Release.iso      vmtool_kvm_win_V6.03.02T23.iso
vmtool_kvm_linux_V6.03.02T23.iso              ZXVEi.SERVER.V5.05.F8-iRAI.V6.03.02.iso

卸载

  • umount
root@windows7:~# umount dirtmp 
root@windows7:~# rmdir dirtmp
posted @ 2020-08-25 09:34  mrhonest  阅读(1897)  评论(0编辑  收藏  举报