로그만 많이 쌓여서 로그를 없애 버렸다.
centos에서 사용하고 있다.
startup.sh
killall node
nohup node server.js > /dev/null 2>&1 &
nohupmeans: Do not terminate this process even when the stty is cut off.> /dev/nullmeans: stdout goes to /dev/null (which is a dummy device that does not record any output).2>&1means: stderr also goes to the stdout (which is already redirected to/dev/null).&at the end means: run this command as a background task.
ref: http://stackoverflow.com/questions/4797050/how-to-run-process-as-background-and-never-die
댓글 없음:
댓글 쓰기