分布式文件存储系统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 对象存储

官方文档

相关推荐
PPS柴油2 分钟前
RK3568开发板gpio模拟LED呼吸灯
linux·驱动开发·嵌入式硬件
UP_Continue3 分钟前
Linux权限
linux·运维·服务器
努力也学不会java9 分钟前
【docker】Docker Image(镜像)
java·运维·人工智能·机器学习·docker·容器
深思慎考12 分钟前
微服务即时通讯系统(服务端)——网关服务设计与实现(7)
linux·c++·微服务·云原生·架构
LSL666_14 分钟前
云服务器安装MySQL
运维·服务器·mysql
gaize121316 分钟前
服务器的性能如何评估
运维·服务器·php
牛奶咖啡1318 分钟前
制作无人值守自动化系统镜像并实现自动化安装——万能系统引导U盘版本
运维·制作万能系统引导u盘·实现对整个系统的安装备份·制作自动化无人值守系统镜像·使用自动化无人值守系统镜像部署·使用再生龙实现系统的自动化安装
ShiLiu_mtx20 分钟前
Keepalived,Haproxy负载均衡集群
linux·运维·负载均衡
幸福右手牵21 分钟前
服务器 IP 地址配置方案
linux·服务器·tcp/ip·智能路由器
vortex522 分钟前
Ubuntu 虚拟机配置静态 IP
linux·tcp/ip·ubuntu