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

Install the mongodb database on centos6.5

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

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

Mongodb installation steps:

1 sudo mkdir / home/mongodb # create MongoDB program storage directory

2 sudo mkdir / data/mongodata-p # create a data storage directory

3 sudo mkdir / data/log/mongolog-p # create log storage directory

4 sudo mkdir / data/db

5 curl-O https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-3.2.1.tgz

Installation

1 tar xf mongodb-linux-x86_64-3.2.1.tgz

2 cd mongodb-linux-x86_64-3.2.1

3 cp-r * / home/mongodb

To facilitate command startup, you need to edit the global variable PATH

1 vim / etc/profile.d/mongo.sh

2 export PATH=$PATH:/home/mongodb/bin

Source / etc/profile.d/mongo.sh

/ / start

Mongod-dbpath=/data/mongodata-logpath=/data/log/mongolog/mongodb.log-logappend-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: 0

*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