admin管理员组文章数量:1026989
1.设置windows下的文件夹为共享模式
2、CentOS下执行 :
a、yum install samba-clientb、yum install nfs-utils
c、smbclient -L //192.168.2.246 -U administrator
d、mkdir -p /mnt/windows
e、mount -t cifs -o username="Administrator",password="123456" //192.168.2.246/spider /mnt/windows
安装之后,/sbin/下面多了两个mount文件,分别是mount.nfs和mount.nfs4:
[root@localhost home]# ll /sbin/mount*
-rwxr-xr-x. 1 root root 11280 Aug 4 2017 /sbin/mount.fuse
-rwsr-xr-x. 1 root root 113304 Mar 7 21:39 /sbin/mount.nfs
lrwxrwxrwx. 1 root root 9 Apr 30 23:42 /sbin/mount.nfs4 -> mount.nfs
-rwxr-xr-x. 1 root root 35813 Mar 7 21:39 /sbin/mountstats
[root@localhost home]#
1.设置windows下的文件夹为共享模式
2、CentOS下执行 :
a、yum install samba-clientb、yum install nfs-utils
c、smbclient -L //192.168.2.246 -U administrator
d、mkdir -p /mnt/windows
e、mount -t cifs -o username="Administrator",password="123456" //192.168.2.246/spider /mnt/windows
安装之后,/sbin/下面多了两个mount文件,分别是mount.nfs和mount.nfs4:
[root@localhost home]# ll /sbin/mount*
-rwxr-xr-x. 1 root root 11280 Aug 4 2017 /sbin/mount.fuse
-rwsr-xr-x. 1 root root 113304 Mar 7 21:39 /sbin/mount.nfs
lrwxrwxrwx. 1 root root 9 Apr 30 23:42 /sbin/mount.nfs4 -> mount.nfs
-rwxr-xr-x. 1 root root 35813 Mar 7 21:39 /sbin/mountstats
[root@localhost home]#
版权声明:本文标题:Windows共享文件夹给CentOS7使用 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/jiaocheng/1728603436a873608.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论