Linux端挂载Windows共享的目录时报错mount error(112): Host is down Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
报错现象:
[root@bogon /]#mount.cifs //192.168.2.1/gx /data
Password for root@//192.168.2.1/gx:
mount error(112): Host is down
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
解决方法:
在控制面板->程序和功能->启动或关闭windows更能中勾选SMB的相关项,之后重启电脑即可
再次尝试挂载Windows端共享的目录:
yum install -y cifs-utils
mkdir /data
mount.cifs //192.168.2.1/gx /data
不需要输入密码直接回车
df -h
ls /data