我有一个在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>
更改server.properties中的listeners属性使这项工作成功。
server.properties:
listeners=xx.xxx.xx.xx:9092