V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
NGINX
NGINX Trac
3rd Party Modules
Security Advisories
CHANGES
OpenResty
ngx_lua
Tengine
在线学习资源
NGINX 开发从入门到精通
NGINX Modules
ngx_echo
aoscici2000
V2EX  ›  NGINX

Nginx 代理 Rabbitmq 报错 The system cannot find the file specified

  •  
  •   aoscici2000 · 2019-12-05 22:14:34 +08:00 · 3020 次点击
    这是一个创建于 1575 天前的主题,其中的信息可能已经有所发展或是发生改变。
    location /mq {
    	proxy_pass http://127.0.0.1:15672/api/exchanges/vhost/exchange/publish;
    	proxy_set_header Authorization "Basic Z3Vlc3Q6Z3Vlc3Q";
    }
    

    代理配置如上所示, /mq 返回 400

    nginx 错误日志: OpenEvent("ngx_master_10400") failed (2: The system cannot find the file specified)

    url 直接发送是成功的, 验证貌似也报错, 不知道哪里还需要什么配置吗?

    4 条回复    2019-12-06 11:24:00 +08:00
    hongzz
        1
    hongzz  
       2019-12-06 09:27:47 +08:00
    my 应该是 tcp 吧
    aaa5838769
        2
    aaa5838769  
       2019-12-06 10:25:56 +08:00
    楼上正解,应该走的是 tcp 协议吧,你用 stream 模块试试 http://nginx.org/en/docs/stream/ngx_stream_core_module.html
    julyclyde
        3
    julyclyde  
       2019-12-06 10:42:10 +08:00
    上面两位是不是不知道 rabbitmq 有 http 服务?
    aoscici2000
        4
    aoscici2000  
    OP
       2019-12-06 11:24:00 +08:00
    @aaa5838769 http 也是没问题的, 直接走 http://guest:[email protected]:15672/xxxx 是可以正常进入到队列里去的
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1068 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 19:03 · PVG 03:03 · LAX 12:03 · JFK 15:03
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.