@Override
    protected void loadFileSectAttributes(Ini iniConf) {
        this.loadBrokerSectConf(iniConf);
        this.tlsConfig = this.loadTlsSectConf(iniConf,
                TBaseConstants.META_DEFAULT_BROKER_TLS_PORT);
        this.zkConfig = loadZKeeperSectConf(iniConf);
        this.auditConfig = loadAuditSectConf(iniConf);
        this.prometheusConfig = loadPrometheusSecConf(iniConf);
        if (this.port == this.webPort
                || (tlsConfig.isTlsEnable() && (this.tlsConfig.getTlsPort() == this.webPort))) {
            throw new IllegalArgumentException(new StringBuilder(512)
                    .append("Illegal port value configuration, the value of ")
                    .append("port or tlsPort cannot be the same as the value of webPort!")
                    .toString());
        }
        if (this.prometheusConfig.isPromEnable()) {
            int promHttpPort = this.prometheusConfig.getPromHttpPort();
            if ((promHttpPort == this.port || promHttpPort == this.webPort
                    || (tlsConfig.isTlsEnable()
                            && (this.tlsConfig.getTlsPort() == promHttpPort)))) {
                throw new IllegalArgumentException(new StringBuilder(512)
                        .append("Illegal port value configuration, the value of ")
                        .append("port or webPort or tlsPort cannot be the same as the value of promHttpPort!")
                        .toString());
            }
        }
    }
Config of broker. Read from broker.ini config file.
inlong-tubemq/tubemq-server/src/main/java/org/apache/inlong/tubemq/server/broker/BrokerConfig.java