2023-12-30 minio 安装及简单使用
https://blog.csdn.net/sugar_cookie/article/details/128732414
上传头像
1.minio 安装 一直出错 开代理后也出错了 一下 之后就好了 可能是代理还没开启导致的 要等待一下
- 启动
/usr/local/opt/minio/bin/minio server --config-dir=/usr/local/etc/minio --address=:9000 /usr/local/var/minio
–config-dir=/usr/local/etc/minio 配置文件目录
–address=:9000 使用的端口
/usr/local/var/minio 存储数据目录
Ctrl+c关闭服务器。
4.访问
启动成功,访问 http://127.0.0.1:9000 或者 http://127.0.0.1:52301
RootUser: minioadmin
RootPass: minioadmin
- minio 安装官网地址: 9000 访问端口不变 9090 后台管理 端口
https://www.minio.org.cn/docs/cn/minio/container/index.html - minio 使用
https://min.io/docs/minio/linux/developers/java/minio-java.html
1).启动 / 或者 ls 到对应位置 在启动
/usr/local/opt/minio/bin/minio server --config-dir=/usr/local/etc/minio --address=:9000 /usr/local/var/minio
2).访问
http://127.0.0.1:9000
RootUser: minioadmin
RootPass: minioadmin
3.创建存储容器
image.png
image.png
image.png
image.png
////////////////////////// minio 使用
image.png image.png image.png image.png//////////////////////////
image.pngimage.png
49616 可以理解为网关 映射地址
//////////////////////////
Warning: No remote 'origin' in /usr/local/Homebrew/Library/Taps/homebrew/homebrew-services, skipping update!
Running brew update --auto-update
...
Installing from the API is now the default behaviour!
You can save space and time by running:
brew untap homebrew/core
brew untap homebrew/cask
==> Auto-updated Homebrew!
Updated 2 taps (homebrew/core and homebrew/cask).
==> New Formulae
cargo-llvm-cov pivit texi2mdoc wasmedge
==> New Casks
geekbench-ml lightburn ollama opencat streammusic
==> Tapping minio/stable
Cloning into '/usr/local/Homebrew/Library/Taps/minio/homebrew-stable'...
fatal: unable to access 'https://github.com/minio/homebrew-stable/': Failure when receiving data from the peer
Error: Failure while executing; git clone https://github.com/minio/homebrew-stable /usr/local/Homebrew/Library/Taps/minio/homebrew-stable --origin=origin --template= --config core.fsmonitor=false
exited with 128.
mac@MacBook-Pro ~ % brew install minio/stable/minio
Warning: No remote 'origin' in /usr/local/Homebrew/Library/Taps/homebrew/homebrew-services, skipping update!
Running brew update --auto-update
...
Error: Failed to download https://formulae.brew.sh/api/cask.jws.json!
Installing from the API is now the default behaviour!
You can save space and time by running:
brew untap homebrew/core
brew untap homebrew/cask
==> Tapping minio/stable
Cloning into '/usr/local/Homebrew/Library/Taps/minio/homebrew-stable'...
fatal: unable to access 'https://github.com/minio/homebrew-stable/': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443
Error: Failure while executing; git clone https://github.com/minio/homebrew-stable /usr/local/Homebrew/Library/Taps/minio/homebrew-stable --origin=origin --template= --config core.fsmonitor=false
exited with 128.
mac@MacBook-Pro ~ % brew untap homebrew/core
Untapping homebrew/core...
Untapped 3 commands and 6990 formulae (7,377 files, 845.6MB).
mac@MacBook-Pro ~ % brew untap homebrew/cask
Untapping homebrew/cask...
Untapped 4336 casks (4,424 files, 465.2MB).
mac@MacBook-Pro ~ % brew install minio/stable/minio
Warning: No remote 'origin' in /usr/local/Homebrew/Library/Taps/homebrew/homebrew-services, skipping update!
Running brew update --auto-update
...
Error: Failed to download https://formulae.brew.sh/api/cask.jws.json!
Failed to download https://formulae.brew.sh/api/formula_tap_migrations.jws.json!
==> Tapping minio/stable
Cloning into '/usr/local/Homebrew/Library/Taps/minio/homebrew-stable'...
fatal: unable to access 'https://github.com/minio/homebrew-stable/': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443
Error: Failure while executing; git clone https://github.com/minio/homebrew-stable /usr/local/Homebrew/Library/Taps/minio/homebrew-stable --origin=origin --template= --config core.fsmonitor=false
exited with 128.
mac@MacBook-Pro ~ % brew search minio
==> Formulae
minio minio-mc minicom minipro minica mint
==> Casks
min miniwol
mac@MacBook-Pro ~ % brew install minio/stable/mc
Warning: No remote 'origin' in /usr/local/Homebrew/Library/Taps/homebrew/homebrew-services, skipping update!
Running brew update --auto-update
...
Error: Failed to download https://formulae.brew.sh/api/formula.jws.json!
Failed to download https://formulae.brew.sh/api/formula_tap_migrations.jws.json!
==> Tapping minio/stable
Cloning into '/usr/local/Homebrew/Library/Taps/minio/homebrew-stable'...
fatal: unable to access 'https://github.com/minio/homebrew-stable/': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443
Error: Failure while executing; git clone https://github.com/minio/homebrew-stable /usr/local/Homebrew/Library/Taps/minio/homebrew-stable --origin=origin --template= --config core.fsmonitor=false
exited with 128.
mac@MacBook-Pro ~ % brew install minio-mc
Warning: No remote 'origin' in /usr/local/Homebrew/Library/Taps/homebrew/homebrew-services, skipping update!
Running brew update --auto-update
...
==> Fetching minio-mc
==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/minio-mc-2023122308
curl: (35) LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to mirrors.ustc.edu.cn:443
Warning: Bottle missing, falling back to the default domain...
==> Downloading https://ghcr.io/v2/homebrew/core/minio-mc/manifests/202312230847
curl: (35) LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to ghcr.io:443
Error: minio-mc: Failed to download resource "minio-mc_bottle_manifest"
Download failed: https://ghcr.io/v2/homebrew/core/minio-mc/manifests/20231223084721
mac@MacBook-Pro ~ % brew install minio/stable/minio
Warning: No remote 'origin' in /usr/local/Homebrew/Library/Taps/homebrew/homebrew-services, skipping update!
Running brew update --auto-update
...
==> Tapping minio/stable
Cloning into '/usr/local/Homebrew/Library/Taps/minio/homebrew-stable'...
remote: Enumerating objects: 2197, done.
remote: Counting objects: 100% (911/911), done.
remote: Compressing objects: 100% (251/251), done.
remote: Total 2197 (delta 695), reused 875 (delta 660), pack-reused 1286
Receiving objects: 100% (2197/2197), 305.10 KiB | 1.89 MiB/s, done.
Resolving deltas: 100% (1450/1450), done.
Tapped 3 formulae (17 files, 387.4KB).
==> Fetching minio/stable/minio
==> Downloading https://dl.min.io/server/minio/release/darwin-amd64/archive/mini
######################################################################### 100.0%
==> Installing minio from minio/stable
==> Download complete!
==> Useful links:
Command-line Access: https://docs.min.io/docs/minio-client-quickstart-guide
Object API (Amazon S3 compatible):
Go: https://docs.min.io/docs/golang-client-quickstart-guide
Java: https://docs.min.io/docs/java-client-quickstart-guide
Python: https://docs.min.io/docs/python-client-quickstart-guide
JavaScript: https://docs.min.io/docs/javascript-client-quickstart-guide
.NET: https://docs.min.io/docs/dotnet-client-quickstart-guide
Talk to the community: https://slack.min.io
==> Get started:
NAME:
minio server - start object storage server
USAGE:
minio server [FLAGS] DIR1 [DIR2..]
minio server [FLAGS] DIR{1...64}
minio server [FLAGS] DIR{1...64} DIR{65...128}
DIR:
DIR points to a directory on a filesystem. When you want to combine
multiple drives into a single large system, pass one directory per
filesystem separated by space. You may also use a '...' convention
to abbreviate the directory arguments. Remote directories in a
distributed setup are encoded as HTTP(s) URIs.
FLAGS:
--config value specify server configuration via YAML configuration [MINIO_ADDRESS]
--console-address value bind to a specific ADDRESS:PORT for embedded Console UI, ADDRESS can be an IP or hostname [$MINIO_CONSOLE_ADDRESS]
--ftp value enable and configure an FTP(Secure) server
--sftp value enable and configure an SFTP server
--certs-dir value, -S value path to certs directory (default: "/Users/mac/.minio/certs")
--quiet disable startup and info messages
--anonymous hide sensitive information from logging
--json output logs in JSON format
--help, -h show help
EXAMPLES:
-
Start MinIO server on "/home/shared" directory.
$ minio server /home/shared -
Start single node server with 64 local drives "/mnt/data1" to "/mnt/data64".
$ minio server /mnt/data{1...64} -
Start distributed MinIO server on an 32 node setup with 32 drives each, run following command on all the nodes
$ minio server http://node{1...32}.example.com/mnt/export{1...32} -
Start distributed MinIO server in an expanded setup, run the following command on all the nodes
$ minio server http://node{1...16}.example.com/mnt/export{1...32}
http://node{17...64}.example.com/mnt/export{1...64} -
Start distributed MinIO server, with FTP and SFTP servers on all interfaces via port 8021, 8022 respectively
{HOME}/.ssh/id_rsa"
🍺 /usr/local/Cellar/minio/RELEASE.2023-12-23T07-19-11Z_1: 3 files, 102.6MB, built in 15 seconds
==> Runningbrew cleanup minio
...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (seeman brew
).
mac@MacBook-Pro ~ %