slackbuilds/system/mongodb
B. Watson a0d9c15065
system/mongodb: If user/group doesn't exist, exit 1.
Signed-off-by: B. Watson <urchlay@slackware.uk>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
2023-08-12 08:29:50 +07:00
..
files
patches
README
doinst.sh
mongodb.SlackBuild system/mongodb: If user/group doesn't exist, exit 1. 2023-08-12 08:29:50 +07:00
mongodb.info
slack-desc

README

MongoDB is a scalable, high-performance, open source document-oriented
database.

You'll need to create a mongo user and group in order to run mongo with
the provided init script:

# groupadd -g 285 mongo
# useradd -u 285 -d /var/lib/mongodb -s /bin/false -g mongo mongo

You'll also need to add the following to /etc/rc.d/rc.local

if [ -x /etc/rc.d/rc.mongodb ]; then
    /etc/rc.d/rc.mongodb start
fi

NOTE: mongodb 5.0 requires use of the AVX instruction set: check if
your cpu supports it with

  grep avx /proc/cpuinfo | uniq

(no output means it doesn't)