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

MongoDB installation configuration [1]

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

Share

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

Installation instructions

System environment: Centos-5.5

Installation software: mongodb-linux-x86_64-2.6.3.tgz

Download address: http://www.mongodb.org/downloads

Installation machine: 192.168.3.206

Upload location: / root/soft

Software installation location: / usr/local/mongodb

Data storage location: / data/mongodb/

Log location: / data/logs/mongodb/

Installation

Groupadd mongodb

Useradd mongodb-g mongodb

Cd / root/soft

Tar-zxvf mongodb-linux-x86_64-2.6.3.tgz

Mv mongodb-linux-x86_64-2.6.3 mongodb

Mv mongodb / usr/local/

Cd / usr/local/

Chown-R mongodb: mongodb mongodb

Cd mongodb

Mkdir-p / data/mongodb

Mkdir-p / data/logs/mongodb/

Configuration

Add CentOS boot entry

Vi / etc/rc.d/rc.local

# add to Startup item

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

Start mongodb

/ usr/local/mongodb/bin/mongod-dbpath=/data/mongodb/-logpath / data/logs/mongodb/log.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: 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