mountpoint-s3 rpm 包

为了方便linux 系统使用mountpoint-s3包(centos)基于自己构建的二进制程序+fpm 制作了一个rpm 可以方便大家使用

参考构建处理

  • 命令
fpm -s dir -t rpm -n mountpoint-s3 --rpm-os linux -v v1.0.0_centos7 \
  ./mount-s3-centos=/usr/bin/mount-s3 \
  ./mountpoint.service=/usr/lib/systemd/system/mountpoints3.service \
  ./mountpoint.config=/etc/mountpoint/config
  • mountpoint.service
    使用了forking模式,默认mount-s3 挂载为后台任务
 
[Unit]
Description=mountpoint-s3 service
After=network.target
 
[Service]
EnvironmentFile=-/etc/mountpoint/config
ExecStart=/usr/bin/mount-s3  $OPTIONS
Type=forking
# file size
LimitFSIZE=infinity
# cpu time
LimitCPU=infinity
# virtual memory size
LimitAS=infinity
# open files
LimitNOFILE=64000
# processes/threads
LimitNPROC=64000
# locked memory
LimitMEMLOCK=infinity
# total threads (user+kernel)
TasksMax=infinity
TasksAccounting=false
[Install]
WantedBy=multi-user.target
  • mountpoint.config
    启动配置,通过环境变量存储了s3 访问key 以及启动配置
 
AWS_ACCESS_KEY_ID=""
AWS_SECRET_ACCESS_KEY=""
OPTIONS=" --endpoint-url http://127.0.0.1:9000  demoapp demoapp"

说明

rpm包我已经放到github了,实际使用主要就是进行/etc/mountpoint/config 配置的修改对于挂载点配置需要使用绝对路径
参考

 
AWS_ACCESS_KEY_ID="minio"
AWS_SECRET_ACCESS_KEY="minio123"
OPTIONS=" --endpoint-url http://127.0.0.1:9000 -l /opt/s3/logs  demoapp /opt/s3/demoapp"
 
 

参考资料

https://github.com/awslabs/mountpoint-s3
https://github.com/rongfengliang/mountpoint-s3-packages/releases/tag/v1.0.0

posted on   荣锋亮  阅读(79)  评论(0编辑  收藏  举报

相关博文:
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· 记一次.NET内存居高不下排查解决与启示
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· .NET10 - 预览版1新功能体验(一)
历史上的今天:
2022-03-27 coolify heroku & netlify 可选开源方案
2022-03-27 supertokens autho firebase auth aws cognito 开源替换方案
2022-03-27 minio 系统自动纠删码处理算法简单说明
2021-03-27 filodb 分布式prometheus 时序数据库
2021-03-27 cube.js 一些预聚合分区新特性
2020-03-27 使用mgob 进行mongodb 数据库备份
2019-03-27 terraform 配置github module source

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示