diff options
author | bt <bt@web> | 2023-12-09 10:29:14 -0500 |
---|---|---|
committer | IkiWiki <ikiwiki.info> | 2023-12-09 10:29:14 -0500 |
commit | cc05f3197925df0b5255db247e6a3bec61591945 (patch) | |
tree | 9014f61527511d088be7f369085735d12dfde079 | |
parent | 862c5975943fb1be9d96a0fbe24fcd3ab92e4b07 (diff) |
-rw-r--r-- | posts/mongodb-arch.md | 35 |
1 files changed, 17 insertions, 18 deletions
diff --git a/posts/mongodb-arch.md b/posts/mongodb-arch.md index 45babac..1bddf3a 100644 --- a/posts/mongodb-arch.md +++ b/posts/mongodb-arch.md @@ -1,6 +1,5 @@ -# Installing Older Versions of MongoDB on Arch Linux - -2023-09-11 +[[!meta title="Installing Older Versions of MongoDB on Arch Linux"]] +[[!meta date="2023-09-11"]] I've recently been using Arch Linux for my main work environment on my ThinkPad X260. It's been great. As someone who is constantly drawn to minimalist operating systems such as Alpine or OpenBSD, it's nice to use something like Arch that boasts that same minimalist approach but with greater documentation/support. @@ -12,16 +11,16 @@ So I thought I would share my process of setting up an older version of MongoDB You will need to target the specific version of MongoDB using the very awesome AUR packages: -``` -yay -S mongodb34-bin -``` + + yay -S mongodb34-bin + Follow the instructions and you'll be good to go. Don't forget to create the `/data/db` directory and give it proper permissions: -``` -mkdir -p /data/db/ -chmod -R 777 /date/db -``` + + mkdir -p /data/db/ + chmod -R 777 /date/db + ## What About My "Tools"? @@ -29,16 +28,16 @@ If you plan to use MongoDB, then you most likely want to utilize the core databa So, you'll have to build from source locally: -``` -git clone https://github.com/mongodb/mongo-tools -cd mongodb-tools -./make build -``` + + git clone https://github.com/mongodb/mongo-tools + cd mongodb-tools + ./make build + Then you'll need to copy the built executables into the proper directory in order to use them from the terminal: -``` -cp bin/* /usr/local/bin/ -``` + + cp bin/* /usr/local/bin/ + And that's it! Now you can run `mongod` directly or use `systemctl` to enable it by default. Hopefully this helps anyone else curious about running older (or even outdated!) versions of MongoDB. |