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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM