《Linux运维总结:Kylin V10+ARM架构CPU基于docker-compose一键离线部署redis6.2.8之容器版哨兵集群》

_karen

关注

阅读 8

2024-04-19

安装

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

精彩评论(0)

0 0 举报