时间:2021-07-01 10:21:17 帮助过:48人阅读
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
[root@client01 soft]# mongo
MongoDB shell version: 3.0.5
connecting to: test
默认数据库是test
本文出自 “10931853” 博客,请务必保留此出处http://wujianwei.blog.51cto.com/10931853/1957840
mongodb二进制安装文档
标签:mongodb二进制安装文档