Linux / Windows · 2019年8月5日 0

CentOS7挂载windows下的共享文件夹

命令挂载
#mount -t cifs -o username=xxx,password=xxx //192.168.xxx.xxx/share /mnt/xxx

开机启动就挂载

在/etc/fstab文件中添加下列代码

//192.168.xxx.xxx/share /mnt/share cifs username=xxx,password=passwd 0 0