- 安装s3fs-fuse
yum install epel-release
yum install s3fs-fuse
- 设置oss所使用的AccessKey和AccessSecretKey
echo ${ACCESS_KEY}:${SECRET_ACCESS_KEY} > ${HOME}/.passwd-s3fs
chmod 600 ${HOME}/.passwd-s3fs
- 挂载oss至文件系统
s3fs ${BUCKET} ${MOUNT_POINT} -o passwd_file=${HOME}/.passwd-s3fs -o url=https://${URL_TO_S3}/ -o umask=0000
umash用于设置目录的操作权限
网友评论