# 下载MinIO的可执行文件
curl -O https://dl.min.io/server/minio/release/linux-amd64/minio
# 添加执行权限
chmod +x minio
# 运行MinIO (需要先创建存储数据和存储存储桶的目录)
nohup ./minio server /home/lighthouse/minioDir/data /home/lighthouse/minioDir/buckets > minio.log 2>&1 &
注意data目录(即数据目录)和buckets目录(桶目录)替换为实际目录
启动报错了,9000端口被占用,但是9000端口没有被启动的程序使用,怎么释放9000出来呢,这里有点奇怪。
这里搞不定,只能换个端口
cat /etc/profile
配置了启动用户密码在环境变量中,内容如下:
export MINIO_ROOT_USER=admin
export MINIO_ROOT_PASSWORD=admin123
然后修改启动命令为:
nohup ./minio server --address ":9090" /home/lighthouse/minioDir/data /home/lighthouse/minioDir/buckets > minio.log 2>&1 &
执行后,发现报错了,报错如下:
INFO: Unable to use the drive /home/lighthouse/minioDir/data: drive not found, will be retried
INFO: Unable to use the drive /home/lighthouse/minioDir/buckets : drive not found, will be retried
INFO: Unable to use the drive /home/lighthouse/minioDir/data: drive not found, will be retried
INFO: Unable to use the drive /home/lighthouse/minioDir/buckets : drive not found, will be retried
INFO: Waiting for a minimum of 1 drives to come online (elapsed 0s)