首先centos需要安装cifs-utils
[root@centos ~]# yum -y install cifs-utils
挂载命令
[root@centos ~]# mount -t cifs -o username='centos',password='123456' //192.168.1.1/ftp /data/ftp
如果出现类似这样的报错:
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)