linux挂载文件

Linux挂载Winodws共享文件夹

mount -t cifs -o username=***,password=*** //192.168.1.48/share /mnt

其中-t表示要挂载的类型,cifs是微软提供远程访问的一个协议。然后是登录用户和密码,和windows共享地址,和挂载地址。然后就可以查看了。


linux挂载NFS文件

mount -t nfs4 192.168.1.113:/opt/fileserver /opt/AppFiles

错误:

nfs挂载错误的问题,错误提示如下:

mount: wrong fs type, bad option, bad superblock on 192.168.1.113:/opt/fileserver

解决:

yum install nfs-utils
原文地址:https://www.cnblogs.com/MacoLee/p/5673763.html