Post Stats
此文章有 1223 个字符, 大约要花 5 分钟阅读
背景
尝试裸机部署minio,来代替AWS S3服务。
安装
下载二进制运行程序
这里使用的是 amd64 centos-stream-9 操作系统
# MinIO Server
wget https://dl.min.io/server/minio/release/linux-amd64/minio
chmod +x minio
# MinIO Client
wget https://dl.min.io/client/mc/release/linux-amd64/mc
chmod +x mc
创建service文件
server
vim /usr/lib/systemd/system/minio.server.service
粘贴内容:
[Unit]
Description=S3存储
[Service]
WorkingDirectory=/data/minio
Type=simple
User=root
Group=root
ExecStart=/data/minio/minio server /data/minio/data --console-address ":9001"
Restart=always
RestartSec=10
SyslogIdentifier=minio-server
Environment=MINIO_ROOT_USER=admin
Environment=MINIO_ROOT_PASSWORD=RanDoMPAsSWoRD
client
vim /usr/lib/systemd/system/minio.client.service
[Unit]
Description=S3存储 客户端
[Service]
WorkingDirectory=/data/minio
Type=simple
User=root
Group=root
ExecStart=mc alias set myminio/ //127.0.0.1 admin RanDoMPAsSWoRD
Restart=always
RestartSec=10
SyslogIdentifier=minio-client
运行
systemctl daemon-reload
systemctl start minio.server.service
systemctl enable minio.server.service
systemctl start minio.client.service
systemctl enable minio.client.service
Comments NOTHING