minio安装

Published on 2022-11-15 09:47 in 分类: 软件 with 狂盗一枝梅
分类: 软件

第一步 环境变量配置

vim /etc/profile

# 新增以下配置
export MINIO_ROOT_USER=fileadmin
export MINIO_ROOT_PASSWORD=fileadmin

第二步 准备安装程序

# 创建安装文件夹
mkdir /usr/local/minio

cd /usr/local/minio

# 下载安装程序
wget https://dl.minio.io/server/minio/release/linux-amd64/minio

# 创建log文件
touch minio.log

# 赋予执行权限
chmod 777 minio

第三步 安装

准备安装脚本

cd /usr/local/minio

# 新增restart.sh启动文件
vim restart.sh

# 新增如下内容
ES_ID=`ps -ef |grep minio |grep -w 'minio'|grep -v 'grep'|awk '{print $2}'`
# 这里判断ES进程是否存在
if [[ $ES_ID ]];then
        `kill -9 ${ES_ID}`
fi

nohup /usr/local/minio/minio server  /usr/local/minio/data --console-address ":35555" > /usr/local/minio/minio.log 2>&1 &

然后执行启动脚本

bash restart.sh

在minio.log文件中能够看到日志

WARNING: Detected Linux kernel version older than 4.0.0 release, there are some known potential performance problems with this kernel version. MinIO recommends a minimum of 4.x.x linux kernel version for best performance
Warning: Default parity set to 0. This can lead to data loss.
MinIO Object Storage Server
Copyright: 2015-2022 MinIO, Inc.
License: GNU AGPLv3 <https://www.gnu.org/licenses/agpl-3.0.html>
Version: RELEASE.2022-11-11T03-44-20Z (go1.19.3 linux/amd64)

Status:         1 Online, 0 Offline. 
API: http://10.182.71.236:9000  http://127.0.0.1:9000     
Console: http://10.182.71.236:35555 http://127.0.0.1:35555   

Documentation: https://min.io/docs/minio/linux/index.html

可以看到启动日志里打印出来了控制台地址:

http://10.182.71.236:35555

以及API访问的地址

http://10.182.71.236:9000

Over.


#minio
目录
复制 复制成功