* Pm2 이용하는 방법
1. npm install pm2 -g 로 모듈설치
2. express 프로젝트 폴더로 이동
3. pm2 start npm -- start 로 서버 시작
4. pm2 list 로 실행중인 프로세스 확인
* Forever 모듈이용하는 방법
1. npm install forever 로 설치 후
2. express 프로젝트폴더로 가서
3. forever start -c "npm start" ./
(-c 옵션: 커맨드 ./ : 현재경로)
출처: https://themestock7.tistory.com/110
원격(ssh) 꺼도 서버계속 돌아가게 하기
서버 초보입니다 ㅠㅠ 간단한 질문인데요, Putty로 우분투 서버에 접속해서 node.js 켜놓고 접속까지 확인했는데, Putty 끄면 자동으로 세션 종료되면서 서버 프로세스도 꺼지더라구요. 접속 컴퓨터 하루종일 켜놓..
themestock7.tistory.com
'대학원 공부 > computer science' 카테고리의 다른 글
Network : Multiple Access : Random Access (0) | 2019.12.11 |
---|---|
Network : Data Link Control : Framing, Flow&Error Control, Protocols, Noisy Channels (0) | 2019.12.10 |
Computer Structure : computer 요소 (0) | 2019.12.02 |
Open Source : Visual Studio Code 단축키 (0) | 2019.12.01 |
Python : basic : public, protected, private (0) | 2019.12.01 |
댓글