首先啊,我在网上查了,都是直接mount或者mount.cifs 用户密码目录就行了,但是我死活都挂载不上,各种无语,
网上查了好多的前辈的挂载方法,但是我就是挂在不上,报错如下:
[root@hxy tuxiang]# mount.cifs //10.10.32.201/file /mnt/server -o user=administrator,pass=hxy123
Retrying with upper case share name
mount error(6): No such device or address
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
[root@hxy tuxiang]# mount.cifs //192.168.10.1/file /mnt/server -o user=administrator,pass=hxy123
[root@hxy tuxiang]# ping 10.10.32.201
PING 10.10.32.201 (10.10.32.201) 56(84) bytes of data.
64 bytes from 10.10.32.201: icmp_seq=1 ttl=64 time=14.3 ms
64 bytes from 10.10.32.201: icmp_seq=2 ttl=64 time=18.0 ms
我试着看下网络也没问题
最后想到,既然是共享文件夹,那是不是需要windows也是设置共享呢?
说做就做,
![](https://img.laitimes.com/img/_0nNw4CM6IyYiwiM6ICdiwiInBnauczN0EDOwAzMzgTO5kTMxIzM2YzLc1TPBVWSMZza0kWead2Xul2XhhGcVRVMU9CX0VmbuYjMx4Caw5CMn1Wavw1LcpDc0RHaiojIsJye.jpg)
文件夹共享OK了
再次尝试
[root@hxy tuxiang]# cd /mnt/server/
[root@hxy server]# ls
MicrosoftOffice_2007_XiTongZhiJia.zip Total_Control_6.2.0.2886.exe wftpd32.exe
OK成功了.
还有过程中出现的一个插曲
我做好共享目录后向这是不是要绝对路径才能呗挂载,于是加上了