Kafka + IIS:糟糕的网关

问题描述 投票:0回答:1

我有一个在Linux服务器10.xx.xx.xx:9092上运行的kafka服务器。我有一个生产者asp.net core 2.0 webapi应用程序构建在iis上运行的C#。

网关错误

Kafka服务器在Linux机器上运行。

当我在邮递员中测试api时,出现以下错误:

        <h3>HTTP Error 502.3 - Bad Gateway</h3>
        <h4>The specified CGI application encountered an error and the server terminated the process.</h4>
c# asp.net iis apache-kafka
1个回答
0
投票

更改server.properties中的listeners属性使这项工作成功。

server.properties:

listeners=xx.xxx.xx.xx:9092
© www.soinside.com 2019 - 2024. All rights reserved.