aws挂载s3
安装
yum update -y
yum install automake fuse fuse-devel gcc-c++ git libcurl-devel libxml2-devel make openssl-devel -y
git clone https://github.com/s3fs-fuse/s3fs-fuse.git
cd s3fs-fuse
./autogen.sh
./configure
make
make install
配置path
vi ~/.bash_profile
PATH=
P
A
T
H
:
PATH:
PATH:HOME/bin:/usr/local/bin
source ~/.bash_profile
挂载
echo AKIA3MIV5xxxxxxxxxxx:sdZTe7mhAaVCtjyrWsUOwUPyUQG4zxxxxxxxxxxx > /etc/passwd-s3fs
chmod 600 /etc/passwd-s3fs
s3fs bucket-name /mnt/s3 -o passwd_file=/etc/passwd-s3fs -o url=https://s3-xx-xxxx-1.amazonaws.com -o endpoint=xx-xxxx-1
开机启动
修改/etc/fstab文件
编辑/etc/fstab文件,添加后面的自动挂载命令。
vi /etc/fstab
原文地址:https://blog.csdn.net/weilaozongge/article/details/137927126
免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!