[Vultr] OS: Ubuntu 14.04 x64에 node.js 설치 View Console 메뉴를 눌러 Username, Password순으로 입력해 root 계정으로 로그인 $ apt-get install curl$ curl -sL https://deb.nodesource.com/setup_6.x | bash -$ apt-get install -y node.js 6.x: 6버전대 중에서 최신 버전으로 설치 $ node -v 설치 확인 겸 버전 확인 서버 개발/Vultr 2018.01.02
[Node.js] Mongoose 사용하기 http://blaupowder.tistory.com/47socket.io 설치 그리고 같은 방법으로% npm install mongoose 설치 http://blaupowder.tistory.com/56몽고디비 실행 app.js… var mongoose = require('mongoose') function connectDB(){ var database = mongoose.createConnection('mongodb://localhost:27017/local', { useMongoClient: true }) database.on('error', console.error.bind(console, 'mongoose connection error:')) database.once('open', functio.. 서버 개발/Mongoose 2017.10.17