MongoDB install on Ubuntu 14.04 LTS
Install MongoDB1. Use apt-get install
https://docs.mongodb.org/master/tutorial/install-mongodb-on-ubuntu/?_ga=1.5459123.1233507774.1453343859
I just run
$apt-get install mongodb
If you want to start,
$sudo services mongodb start
2. Use tallball
https://docs.mongodb.org/manual/tutorial/install-mongodb-on-linux/
I started at /home/pineoc
$curl -O https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-3.2.1.tgz
$ tar -zxvf mongodb-linux-x86_64-3.2.1.tgz
$mkdir -p mongodb
$cp -R -n mongodb-linux-x86_64-3.2.1/ mongodb
$nano ~/.bashrc
add text to .bashrc
****************************************************************
...
...
export PATH=/home/pineoc/mongodb/bin:$PATH
If you want to start,
$mkdir -p /data/db
$mongod
good luck!
댓글 없음:
댓글 쓰기