摘要: index.js var amqp = require('amqplib/callback_api'); const MyConsume = require('./MyConsume'); amqp.connect('amqp://name:password!@localhost:5672/vhos 阅读全文
posted @ 2024-01-26 14:45 冯元春 阅读(94) 评论(0) 推荐(0) 编辑
摘要: const http = require('http'); // 创建一个 HTTP 服务器 const server = http.createServer((req, res) => { // 设置响应头 res.writeHead(200, {'Content-Type': 'applicat 阅读全文
posted @ 2024-01-26 14:16 冯元春 阅读(38) 评论(0) 推荐(0) 编辑