1、Samba协议目录挂载(smb://)
挂载命令:
mount -o username=root,password=root //172.168.1.145/home /home/145
卸载命令:
umount /home/145
2、FTP协议目录挂载(ftp://)
Centos下需要安装curlftpfs包,依赖EPEL源
yum install curlftpfs
挂载命令:
# curlftpfs -o rw,allow_other ftp://username:password@192.168.192.168 /ftp
卸载命令:
# umount /ftp
3、SFTP协议目录挂载(sftp://)
凡是开启ssh服务的,都可以挂载;
Centos下需要安装fuse-sshfs包,依赖EPEL源
yum install fuse-sshfs
挂载命令:
# echo security | sshfs laitkor@remote.example.com:/home/remoteuser /opt/mntssh -o password_stdin
卸载命令:
# umount /opt/mntssh
4、NFS协议目录挂载(nfs://)
挂载命令:
# mount -t nfs 192.168.1.145:/home/nfs /mnt/nfs
卸载命令:
# umount /mnt/nfs