Thoughts, stories and ideas.

Node.js

Node.js

Node.js 설치하기

1. CURL 설치
$ sudo apt-get install build-essential

2. PPA 추가
$ curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -

3. NodeJS 설치
$ sudo apt-get install -y nodejs

4. build-essential 설치
$ sudo apt-get install build-essential

MongoDB

$ mkdir data
$ echo 'mongod --bind_ip=$IP --dbpath=data --nojournal --rest "$@"' > mongod
$ chmod a+x mongod

ls -al (a숨김, l리스트)
chmod a+x 파일명 실행가능한 파일