사용자 도구

사이트 도구


node.js

node.js

주사용처

Node.js was never made to solve the compute scaling issue. It was made to tackle the I/O scaling issue, which it does extremely well. Being single-threaded, Node.js might be a bad choice for web servers serving as computational servers, since heavy computation will block the server's responsiveness.

WebSocket Proxy

  • L7, 기타 프록시를 함부로 사용하면 WebSocket이 작동하지 않게 된다.
  • L7 설정을 HTTP가 아닌 일반 TCP로 지정해야 한다.

분석

Install

  • nodesource : 각종 리눅스 배포판용 저장소 제공.
# Ubuntu LTS
curl -sL https://deb.nodesource.com/setup_lts.x | sudo -E bash -
sudo apt-get install -y nodejs
 
# Ubuntu Current
curl -sL https://deb.nodesource.com/setup_current.x | sudo -E bash -
sudo apt-get install -y nodejs
  • 일부 직접 빌드가 필요한 npm 패키지를 위해서 build-essential 설치 필요.
sudo apt-get install -y build-essential

참조

node.js.txt · 마지막으로 수정됨: 2022/09/21 09:40 저자 kwon37xi