2 01 2013

如何在 Ubuntu 上設定 node.js 的開發環境

bigCat Posted in Linux, JavaScript - Comment.isBlank

via 如何在 Ubuntu 11.04 上設定 node.js 的開發環境 | DreamersLab.\r\n\r\n \r\n\r\n安裝 node.js\r\n\r\n# install git\r\n\r\n$ sudo apt-get install git\r\n\r\n# clone repo\r\n\r\n$ git clone git://github.com/creationix/nvm.git ~/.nvm\r\n\r\n# enable on terminal open\r\n\r\n$ echo ". ~/.nvm/nvm.sh" >> ~/.bashrc\r\n\r\n# reopen your terminal and do the following\r\n\r\n$ nvm install v0.8.16\r\n\r\n# set default node\r\n\r\n$ nvm alias default v0.8.16\r\n\r\n \r\n\r\n安裝 mongodb\r\n\r\n# switch to super user\r\n\r\n$ sudo su\r\n\r\n# add 10gen GPG key\r\n\r\n$ apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10\r\n\r\n# add to source.list for using upstart to manage mongodb\r\n\r\n$ echo "deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen" >> /etc/apt/sources.list\r\n\r\n# install\r\n\r\n$ apt-get update\r\n\r\n$ apt-get install mongodb-10gen\r\n\r\n$ exit

Host: (miao) | Word: Press | Code: HTML5