linux 访问windows共享文件夹的方法
参考:https://www.cnblogs.com/xcb0730/p/9752208.html
共享文件服务器为Windows10 现在使用Linux挂载
本次客户端为CentOS7 需要输入服务器端的用户名和密码
mount -t cifs -o username=Administrator,password=198106 //192.168.0.81/abc /mnt/share
如果挂载出现以下错误提示
mount: 将 //192.168.1.4/share 挂载到 /mnt 失败: 主机关闭
则加参数-o vers=2.0
mount -t cifs -o username=Administrator,password=password -o vers=2.0 //192.168.1.4/share
如需要开机挂载则把挂载命令写入文件即可
/etc/rc.local