githubEdit

MongoDB

MongoDB

Introduction

...

Deploy By Binary

Quick Start

# dependencies
apt install python3-pip
apt install python-dev-is-python3 libssl-dev
apt install build-essential

# download source
git clone -b r6.0.1 https://github.com/mongodb/mongo.git
cd mongo

# compile 
python3 -m pip install -r etc/pip/compile-requirements.txt
python3 buildscripts/scons.py DESTDIR=/opt/mongo install-all

# postinstallation
# groupadd mongodb
# useradd -r -g mongodb -s /bin/false mongodb
mkdir /opt/mongodb/data /opt/mongodb/logs
# chown mongodb:mongodb /opt/mongodb -R

# startup 
/opt/mongodb/bin/mongod --dbpath /opt/mongodb --logpath /opt/mongodb/logs/mongod.log --fork #--config /opt/mongodb/mongod.conf --bind_ip 0.0.0.0

Config and Boot

[[sc-mongodb|MongoDB Config]]

Verify

Troubleshooting

Deploy By Container

Run On Docker

Run On Kubernetes

Reference:

Last updated