Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Basic installation configuration of Mongodb

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

Download the software, version mongodb-linux-x86_64-2.0.2.tgz

Unzipped directory: mongodb-linux-x86_64-2.0.2 then transfer to directory / usr/local/mongodb to establish the corresponding data storage directory and log directory mkdir / usr/local/mongodb/ {data,log} simply start the service execution / usr/local/mongod, but once you exit the terminal The service industry stops running / usr/local/mongod in the background-- dbpath=/usr/local/mongodb/data-- logpath=/usr/local/mongodb/log/mongdb.log-- fork Mongodb has a lot of parameters, such as data storage path, port number, maximum number of connections, and so on. / usr/local/mongod-- dbpath=/usr/local/mongodb/data-- logpath=/usr/local/mongodb/log/mongdb.log-- config / etc/mongo.cnf-- fork Random launch add the following command to / etc/rc.d/rc.local / usr/local/mongodb/bin/mongod-- dbpath=/usr/local/mongodb/data-- logpath=/usr/local/mongodb/log/mongodb.log-- fork

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 276

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report