Giter VIP home page Giter VIP logo

void-mongod's Introduction

void-mongod

The mongod binary in releases was generated using staticx on the official Docker container of mongodb. I've included a runit service to start it.

Instructions

Make sure you have git and wget installed. If not, you can do it with xbps-install -S git wget.

Run the following to install mongod with the service:

# or your own binary
wget https://github.com/uditkarode/void-mongod/releases/download/v5.0.3/mongod

chmod +x mongod
sudo mv mongod /usr/local/bin
cd /tmp
git clone --depth 1 https://github.com/uditkarode/void-mongod
cd void-mongod
sudo mv mongod.conf /etc/mongod.conf
sudo mv mongod /etc/sv
sudo ln -sv /etc/sv/mongod /var/service
sudo sv start mongod

If you see something like warning: mongod: unable to open supervise/ok: file does not exist, you can ignore it.

mongod is now running! It will also autostart on every system boot. The logs will be saved to /tmp/sv/log/mongod/current.

Configuration

The config file is at /etc/mongod.conf. If you make any changes that involve logging/storing in new directories, make sure whatever directories you use exist on the filesystem. You can also add a line like mkdir -p $YOUR_CUSTOM_FOLDER in /etc/sv/mongod/run, just like and after the second line of that file just to be sure.

Note that mongod by default only accepts connections from localhost. If you want it to accept connections from anywhere, change the 127.0.0.1 in the configuration file to 0.0.0.0.

void-mongod's People

Contributors

uditkarode avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.