# nfs客户端需要安装工具
yum install -y nfs-utils
1.挂载阿里云的oss
# 安装客户端工具
wget http://gosspublic.alicdn.com/ossfs/ossfs_1.80.6_centos7.0_x86_64.rpm
yum localinstall ossfs_1.80.6_centos7.0_x86_64.rpm -y
# 添加密码验证
# cat /etc/passwd-ossfs
eus-online-film:pass01:pass02
# 配置权限
chown apache.users /etc/passwd-ossfs
chmod 640 /etc/passwd-ossfs
mkdir /ossplatform
# 进行挂载
ossfs eus-online-film /ossplatform -o allow_other -ourl=oss-us-west-1-internal.aliyuncs.com
将阿里云oss挂载到本地 /ossplatform 目录