본문 바로가기
기타2/Nodejs

NodeJS: PM2 Startup on Windows[2022-10-19]

by 죠부니 2021. 5. 6.
반응형

 

https://github.com/jessety/pm2-installer

아래 썻던 모듈 pm2-windows-service [DEPRECATED] 로 인해 변경

해당 파일을 다운후

해당 폴더로 이동해서 명령어실행시 완료

npm run configure
npm run configure-policy
npm run setup

--

서비스가 시작되지 않는 문제https://github.com/jessety/pm2-installer/issues/8

 

============================================

blog.cloudboost.io/nodejs-pm2-startup-on-windows-db0906328d75

 

NodeJS: PM2 Startup on Windows

How to deal with NodeJS app on Windows Server

blog.cloudboost.io

 

기본적인 내용은 해당 내용을 따라서 진행했다.

github.com/jon-hall/pm2-windows-service

 

jon-hall/pm2-windows-service

Easily install (and uninstall) PM2 as a Windows service - jon-hall/pm2-windows-service

github.com

-

npm i pm2-windows-service -g

-

환경설정에서 폴더추가후 PATH추가

폴더변경이유 : 권한

pm2 save를 쳐보자

마지막줄에

[PM2] Saving current process list...
[PM2] Successfully saved in C:\etc\.pm2\dump.pm2

변경된폴더로 저장이 되었으면 성공

npm i pm2-windows-service -g

npm audit fix

 

pm2-service-install -n PM2

 

--

github.com/jon-hall/pm2-windows-service/issues/56

 

pm2-service-install -n PM2-NEW-APP not working with Window Server 2019 · Issue #56 · jon-hall/pm2-windows-service

When I run this command. process get stuck after first step. I am running this command on window server 2019

github.com

설치시 명령어 진행이 안되어서

npm install -g npm-check-updates

cd %USERPROFILE%\AppData\Roaming\npm\node_modules\pm2-windows-service

ncu inquirer -u

--

[====================] 1/1 100%

 inquirer  ^1.1.2  →  ^8.0.0

Run npm install to install new versions.

--

 

npm install

pm2-service-install -n PM2

반응형

'기타2 > Nodejs' 카테고리의 다른 글

버전체크 npm-check-updates  (0) 2022.02.17
Error: Connection lost The server closed the connection  (0) 2020.11.30
크롤링  (0) 2020.10.29
nvm  (0) 2019.11.28
https://nodejs.org/  (0) 2019.11.28