Loading views...
유정님 스크립트 수정

유정님 스크립트 수정

Date
Date
2019 Dec 20 0:0
Created by
Created by
Seonglae ChoSeonglae Cho
Created time
Created time
2023 Feb 28 12:39
Last edited by
Last edited by
Seonglae ChoSeonglae Cho
Last edited time
Last edited time
2023 Apr 15 16:58
Refs
Refs
 
notion image
 
mount폴더에 마운트가 안되있어서 일단 수정
/nas -> /mnt/nas
 
 
#mount mkdir /mnt/nas cd /mnt/nas mkdir smms_output sudo mount -t cifs //10.0.0.148/smms_output /mnt/nas/smms_output -o user=rlaehdms,pass=tmxmfltm,rw,vers=1.0 #set svr root SVR_ROOT=/mnt/nas/smms_output # install node # install pm2 global #start pm2 pm2 serve $SVR_ROOT 58022 --force --name "nassvr_code42_1"
node설치 등을 yaml로 바꿔야함! yaml파일에 순서 만들어야할듯
 
 
cifs tool (아마 나스 파일시스템)바로 마운트가 안되서 설치하고 마운트해야함
mkdir /mnt/nas/smms_output -p yum install -y cifs-utils sudo mount -t cifs //10.0.0.148/smms_output /mnt/nas/smms_output -o user=Sln_Server_Account,pass=Tmxmfltm\!234,rw,vers=1.0
 
 
 
 

pm2


pm2 호환성 문제 발생...
pm2 is failing to start after Ubuntu apt-get update/upgrade-s. [PM2] Spawning PM2 daemon with pm2_home · Issue #4459 · Unitech/pm2
PM2 is failing to start after an Ubuntu apt-get update/upgrade. It shows this only when started without the debug mode enabled. [PM2] Spawning PM2 daemon with pm2_home=/home/ubuntu/.pm2 This is hard to replicate as: I was doing all this ...
pm2 is failing to start after Ubuntu apt-get update/upgrade-s. [PM2] Spawning PM2 daemon with pm2_home · Issue #4459 · Unitech/pm2
 
이런 문제로
notion image
pm2 실행이 안되고 이런 에러만 뜨는 issue인데
curl https://raw.githubusercontent.com/creationix/nvm/v0.35.2/install.sh | bash source ~/.bashrc nvm install node
nvm으로 최신 node설치하면 다른 에러 뜨는데 그건
zsh로 변수등록하면 에러나서 그런거였다...
 
 
pm2 serve /mnt/nas/smms_output 58022 --force --name "nassvr_code42_1"
이런 식으로 등록하면 잘 작동함
notion image
serve nas ecosystem.config.js로 도
pm2 start config.js
로 하니까 되서 원래 에러를 보니 zsh 때문인듯..
 
우짯든 이제 yaml 파일 생성
 
 
 
notion image
앤서블 노드 나누기
reboot해보고 mount 풀려있나 확인
등록해야함
 

Recommendations