MinIO: Console endpoint is listening on a dynamic port , please use --console-address

简介: MinIO: Console endpoint is listening on a dynamic port , please use --console-address



目录

问题原因:

解决办法:

端口修改

开放端口

禁用端口

启动命令修改

单独部署

运行容器

容器编排(docker-compose)

参考链接:



问题原因:

需要设置静态port,不然访问不了。并且将静态端口开放

9000端口访问后会立即自动跳转到静态端口,这也是需要配置静态端口并开放防火墙的原因

如果不设静态端口不会报错,会有警告,但最终也会导致不能访问minio界面


解决办法:

端口修改

开放端口

 firewall-cmd --zone=public --add-port=9000/tcp -permanent
 firewall-cmd --zone=public --add-port=9999/tcp -permanent
 firewall-cmd --reload


禁用端口

启动命令修改

单独部署

/opt/minio/minio server --console-address '0.0.0.0:9999'  /opt/minio/data/


运行容器

docker run -p 9090:9000 --name minio \
-d --restart=always \
-e MINIO_ACCESS_KEY=minio \
-e MINIO_SECRET_KEY=minio@321 \
-v /data/docker/minio/data:/data \
-v /data/docker/minio/config:/root/.minio \
minio/minio server /data \
--console-address ":9000" --address ":9090"


容器编排(docker-compose)

version: '3.7'
services:
    minio:
    image: minio/minio:RELEASE.2021-07-30T00-02-00Z
    container_name: minio
    ports:
      - "9000:9000"
      - "9009:9009"
    restart: always
    command: server /data --console-address ":9009"
    environment:
      MINIO_ROOT_USER: minioa
      MINIO_ROOT_PASSWORD: minio123 
    logging:
      options:
        max-size: "50M" # 最大文件上传限制
        max-file: "10"
      driver: json-file
    volumes:
      - ${MINIO_DATA_DIR}:/data # 映射文件路径
      - /etc/localtime:/etc/localtime:ro
      - /etc/timezone/timezone:/etc/timezone:ro
    healthcheck:
      test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
      interval: 30s
      timeout: 20s
      retries: 3


参考链接:

https://docs.min.io/docs/deploy-minio-on-docker-compose.html

https://raw.githubusercontent.com/minio/minio/master/docs/orchestration/docker-compose/docker-compose.yaml


目录
相关文章
|
3月前
|
监控
{"level":"warn","ts":"2023-11-07T00:35:53.400+0800","caller":"etcdserver/server.go:2048",&
{"level":"warn","ts":"2023-11-07T00:35:53.400+0800","caller":"etcdserver/server.go:2048",&
|
4月前
|
C#
【Azure Function】Function App启动时出现 Failed to open local port 4001 错误,这是什么情况呢?
【Azure Function】Function App启动时出现 Failed to open local port 4001 错误,这是什么情况呢?
Error: undefined method `launchd_service_path‘ for xxx
使用brew命令进行启动就报错。
244 0
Error from server error dialing backend remote error tls internal error
Error from server error dialing backend remote error tls internal error
127 0
|
应用服务中间件
Error:Remote staging type or host is not specified.
Error:Remote staging type or host is not specified.
167 0
|
XML 应用服务中间件 数据格式
控制台报错: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting proper
控制台报错: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting proper
100 0
控制台报错: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting proper
|
XML 数据格式
警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property ‘source‘ to ‘org.eclips
警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property ‘source‘ to ‘org.eclips
112 0
警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property ‘source‘ to ‘org.eclips
|
分布式计算 Hadoop Java
hbase_异常_05_End of File Exception between local host is: "rayner/127.0.1.1"; destination host is: "localhost":9000;
一、异常信息 java.io.EOFException: End of File Exception between local host is: "ubuntu/127.0.1.1"; destination host is: "localhost":9000; : java.
4503 0
|
Linux 网络架构
Root-NFS: Unable to get mountd port number from server, using default
问题描述:         以前下载到开发板linux内核启动好好地,今天突然启动不了了,到达Root-NFS: Unable to get mountd port number from server, using default这个位置就停住了,过了一段时间就显示,如图:       很明显,我的nfs有问题。
1467 0