Linux服务器挂载Windows共享文件夹
先在windows设置好共享的文件夹,然后在linux系统查看一下是否有cifs-utils组件
如果没有就yum -y install cifs-utils 即可
[root@VM /]# yum list | grep cifs
Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast
cifs-utils.x86_64 6.2-10.el7 os
cifs-utils-devel.i686 6.2-10.el7 os
cifs-utils-devel.x86_64 6.2-10.el7 os
pcp-pmda-cifs.x86_64 4.3.2-13.el7_9 updates
挂载命令:
mount -t cifs -o username=admin,password=xxxxx //192.168.12.52/sharefiles/data/ /mnt/win_share