分布式文件存储系统minio

参考Linux搭建免费开源对象存储

复制代码
wget https://dl.minio.io/server/minio/release/linux-amd64/minio
yum install -y wget
yum install -y wget
wget https://dl.minio.io/server/minio/release/linux-amd64/minio
chmod +x minio
sudo mv minio /usr/local/bin/
minio --version
sudo groupadd --system minio
sudo useradd -s /sbin/nologin --system -g minio minio
sudo chown -R minio:minio /data/
mkdir /data
sudo chown -R minio:minio /data/

vi /etc/systemd/system/minio.service

# Volume to be used for Minio server.
MINIO_VOLUMES="/data"

# Use if you want to run Minio on a custom port.
MINIO_OPTS="--address :9000"

# Access Key of the server.
MINIO_ACCESS_KEY=minio

# Secret key of the server.
MINIO_SECRET_KEY=minioadmin

[root@192 ~]# cat /etc/systemd/system/minio.service
[Unit]
Description=Minio
Documentation=https://docs.minio.io
Wants=network-online.target
After=network-online.target
AssertFileIsExecutable=/usr/local/bin/minio

[Service]
WorkingDirectory=/data
User=minio
Group=minio
EnvironmentFile=-/etc/default/minio
ExecStartPre=/bin/bash -c "if [ -z \"${MINIO_VOLUMES}\" ]; then echo \"Variable MINIO_VOLUMES not set in /etc/default/minio\"; exit 1; fi"
ExecStart=/usr/local/bin/minio server $MINIO_OPTS $MINIO_VOLUMES
# Let systemd restart this service always
Restart=always
# Specifies the maximum file descriptor number that can be opened by this process
LimitNOFILE=65536
# Disable timeout logic and wait until process is stopped
TimeoutStopSec=infinity
SendSIGKILL=no

[Install]
WantedBy=multi-user.target


vi  /etc/default/minio

# Volume to be used for Minio server.
MINIO_VOLUMES="/data"

# Use if you want to run Minio on a custom port.
MINIO_OPTS="--address :9000"

# Access Key of the server.
MINIO_ACCESS_KEY=minio

# Secret key of the server.
MINIO_SECRET_KEY=minioadmin

sudo systemctl daemon-reload
sudo systemctl start minio
netstat -tunlp | grep 9000 -w
yum install -y net-tools
netstat -tunlp | grep 9000 -w

ip:9000

minio

minioadmin

minio与阿里云oss

适用于 Linux 的 MinIO 对象存储 --- 适用于 Linux 的 MinIO 对象存储

官方文档

相关推荐
yyuuuzz4 分钟前
游戏云服务器推荐的技术选择思路
大数据·运维·服务器·游戏·云计算·aws
凡人叶枫10 分钟前
Effective C++ 条款32:确定你的 public 继承塑模出 is-a(是一种)关系
java·linux·开发语言·c++·嵌入式开发
utf8mb4安全女神11 分钟前
expect工具,expect脚本,实现全自动免交互登录ssh,shell脚本和expect结合使用,在多台服务器上创建1个用户【linux】
linux·运维·服务器
暮云星影16 分钟前
全志开发环境搭建及编译构建
linux·arm开发·驱动开发
vortex518 分钟前
Alpine Linux 运行架构解析:从内核到容器的精简之道
linux·运维·架构
王二端茶倒水32 分钟前
智慧酒店 WiFi 运营:从 Portal 认证到住客体验闭环
运维·物联网·架构
三块可乐两块冰33 分钟前
rag学习5
linux·前端·python
::呵呵哒::34 分钟前
在macOS/Linux上优雅管理多个JDK版本:环境变量与别名配置指南
java·linux·macos
vortex540 分钟前
Witr:系统进程溯源与行为分析工具
linux·运维·服务器
何中应43 分钟前
Grafana面板没有数据问题排查
linux·grafana·prometheus