1. 程式人生 > >mongodb二進制安裝文檔

mongodb二進制安裝文檔

mongodb二進制安裝文檔

二進制包下載地址:https://www.mongodb.org/dl/linux

tar xf mongodb-linux-x86_64-3.0.5.tgz -C/usr/local/

mv /usr/local/mongodb-linux-x86_64-3.0.5 /usr/local/mongodb

mkdir /usr/local/mongodb/data

touch /usr/local/mongodb/logs

groupadd mongodb

useradd -g mongodb mongodb -s/sbin/nologin -M

chown -R mongodb:mongodb /usr/local/mongodb

ll /usr/local/mongodb/bin

vim /etc/profile

mongod --dbpath=/usr/local/mongodb/data--fork --logpath=/usr/local/mongodb/logs

[[email protected] soft]# mongo

MongoDB shell version: 3.0.5

connecting to: test

默認數據庫是test


本文出自 “10931853” 博客,請務必保留此出處http://wujianwei.blog.51cto.com/10931853/1957867

mongodb二進制安裝文檔