【环境搭建】常见的挂载方式挂载命令及自动挂载
前言:
常见的文件系统,或者说存储方式,主要有如下几个:
| NFS |
| XFS |
| EFS |
| CIFS |
| COSFS |
| OSS |
其中后边两个是基于AWS S3的腾讯云存储与阿里云存储.
| 一、NFS |
| mount -t nfs 172.x.x.x:/shares/test /Volumes/172nfs |
| 二、cosfs |
| cosfs 125626:cd /home/cosfs -ourl=cos.ap-chengdu.myqcloud.com -odbglevel=info -o allow_other |
| 三、xfs |
| mount --bind /home/test /mnt/data/remote/local_2 |
添加开机自动挂载,编辑/etc/fstab
| 一、NFS |
| /dev/sdb1 /usr/local/mnt xfs defaults 0 0 |
| 二、Cosfs |
| cosfs#cd-125626 /home/cosfs-remote fuse _netdev,allow_other,url=https://cos.ap-chengdu.myqcloud.com,dbglevel=info |
| 三、nfs |
| 172.17.228.136:/shares/cloudtest /mnt/data/remote/169nfs nfs defaults,nolock 0 0 |
| 四、cifs |
| //172.17.230.91/local-disk2 /mnt/data/remote/local-disk2 cifs defaults,username=1,password= 0 0 |
有几个没写。后续补充