minio安装手册

2019/03/12 开源工具&服务

minio安装手册

1、首先下载minio,文档同级目录下已经有minio可执行文件,将此可执行文件授权

wget https://dl.minio.io/server/minio/release/linux-amd64/minio
chmod +x minio

2、编写minio.service

vi /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=/home/nfs/
User=root
Group=root
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
# Built for ${project.name}-${project.version} (${project.name}

3、编写变量文件

vi /etc/default/minio
# Volume to be used for Minio server.
MINIO_VOLUMES="/home/nfs/"
# Use if you want to run Minio on a custom port.
MINIO_OPTS="--address:9000"
# Access Key of the server.
MINIO_ACCESS_KEY=develop
# Secret key of the server.
MINIO_SECRET_KEY=12345678

4、启动服务 并设置开机自启动

systemctl start minio
systemctl enable minio

5、访问minio

地址为:宿主机地址:9000 用户名为 develop 密码为 12345678

Search

    欢迎添加我的个人微信号

    个人微信哦

    Table of Contents