时间:2021-07-01 10:21:17 帮助过:2人阅读
/usr/local/
tar zxvf mongodb-linux-x86_64-2.4.9.tgz mv mongodb-linux-x86_64-2.4.9 mongodb cd mongodb mkdir db mkdir logs cd bin vim mongodb.conf
conf:
dbpath=/usr/local/mongodb/db logpath=/usr/local/mongodb/logs/mongodb.log port=27017 fork=true nohttpinterface=true
bindip and conf:
/usr/local/mongodb/bin/mongod --bind_ip localhost -f /usr/local/mongodb/bin/mongodb.conf
ok
syntax:
语法应该是基于面向对象的:
show dbs
db.version();
db.basic_data.findOne();
....
linux(centos )mongodb install
标签: