cluster
![[node.js] http](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdna%2FpZK0v%2FbtqYZ69ZzgX%2FAAAAAAAAAAAAAAAAAAAAAIpXH4a8EWi_DA3Ki7g4BUWNOcTPusNT1QUj1nJrdQip%2Fimg.png%3Fcredential%3DyqXZFxpELC7KVnFOS48ylbz2pIh7yKj8%26expires%3D1753973999%26allow_ip%3D%26allow_referer%3D%26signature%3D2%252BCgzbFZ3%252FgViXAyTEmO9lOkWBg%253D)
[node.js] http
1. http 서버 http 모듈을 사용하면 node.js를 http서버로서 동작할 수 있도록 구현할 수 있습니다. const http = require('http'); const httpServer = http.createServer((req, res) => { res.writeHead(200, { 'Content-Type': 'text/html; charset=utf-8' }); res.write('Hello'); res.end('Hello Server!'); }); httpServer.listen(80); httpServer.on('listening', () => { console.log('대기중'); }); httpServer.on('error', (err) => { console.error(er..