参考:https://www.cnblogs.com/newz/p/12598899.html
minio服务端搭建
mkdir /usr/local/minio
mkdir /usr/local/minio/etc
mkdir /usr/local/minio/data
cd /usr/local/minio
curl -O https://dl.minio.io/server/minio/release/linux-amd64/minio
chmod 750 minio
nohup ./minio server --address=0.0.0.0:9000 --config-dir /usr/local/minio/etc /usr/local/minio/data > /usr/local/minio/minio.log 2>&1&
在浏览器输入:http://xxxx:9000
AccessKey: minioadmin
SecretKey: minioadmin
- 设置密码启动
vim /usr/local/minio/run.sh
#!/bin/bash
export MINIO_ACCESS_KEY=minio
export MINIO_SECRET_KEY=handhand123
cd /usr/local/minio/
./minio server --address=0.0.0.0:9000 --config-dir /usr/local/minio/etc /usr/local/minio/data > /usr/local/minio/minio.log 2>&1&
- 给sh赋权
cd /usr/local/minio/
chmod u+x *.sh
注意:一旦配置了密码就不能修改了会报错如下ERROR Unable to initialize server switching into safe-mode: Unable to initialize sub-systems: Unable to initialize config system: Invalid credentials,除非删除data目录下的.minio.sys
网友评论