How To Run and Install Mongodb in Arch Linux - Quora

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

Quora

Search for questions, people, and topics

Sign In
Arch Linux
MongoDB

How do I run and install MongoDB in Arch Linux? (I could not


find a guide.)
UpdateCancel

Ad by JetBrains

DataGrip, a powerful GUI tool for SQL.


Smart code completion, on-the-fly analysis, quick-fixes, refactorings that work in SQL files, and more.

Download at jetbrains.com
You dismissed this ad.
The feedback you provide will help us show you more relevant content in the future.
Undo

Answer Wiki

2 Answers

William Chanrico, B. S Computer Science & Computer Networking, Bina Nusantara University (2019)
Answered Jun 26 2017
Answered Jun 26 2017

1. Install mongodb package from official repo. (and mongodb-tools that provides some useful tools)
2. Start the mongodb.service daemon.

To access MongoDB shell, just type:

1. $ mongo

Link to archlinux wiki, MongoDB section: MongoDB - ArchWiki

4.1k views · View 2 Upvoters

Related QuestionsMore Answers Below

What should I know before trying to install packages in Arch Linux (I just have running it on Qemu)?
How do I install Arch Linux on CHUWI Hi8?
How can I install Arch Linux on a most secure way?
What is the best and or easiest source to learn how to install Arch Linux?
How much Linux do I need to know before I install Arch Linux?

Adrian Bartyczak, Developed an enterprise mobile app


Updated Jan 29, 2018
Updated Jan 29, 2018 · Author has 69 answers and 14.5k answer views

Once you have installed mongodb and mongodbutils (William Chanrico ‘s instructions are completely correct), you need to simply import a JSON file:

1. mongoimport --db "database_name" --collection "collection_name" \


2. --file "json_file"
The following is an example Json file:

1. {
2. "_id": "messages",
3. "_description": "Application messages",
4.
5. "home": {
6. "postLoad": "Welcome {}!"
7. },
8.
9. "createAccount": {
10. "postAccountCreated": "Welcome{}!"
11. }
12. }

Here is a MongoDB utility script.

2.6k views

Sponsored by Udemy

Learn JavaScript in just 2 weeks, starting at $9.99.


Learn core skills, Spring Framework, Android Dev. And become an expert JavaScript coder.

Learn more at udemy.com


You dismissed this ad.
The feedback you provide will help us show you more relevant content in the future.
Undo

View more

Related Questions

How do I run MongoDB with XAMPP on Linux?


What are the steps to install Arch Linux 2017 version in VirtualBox?
Can you help me install Arch Linux on my PC?
How do you install MongoDB in Ubuntu 16.04?
Is there a MongoDB client application for Linux?
How do I install the MongoDB server for CentOS 7?
Why is Arch Linux so difficult to set up?
Have you succeeded to run Arch Linux with no re-install over a year and how?
How do I install a desktop environment in Arch Linux?
How do I install a desktop env on VirtualBox running on Arch Linux?

Related Questions

What should I know before trying to install packages in Arch Linux (I just have running it on Qemu)?
How do I install Arch Linux on CHUWI Hi8?
How can I install Arch Linux on a most secure way?
What is the best and or easiest source to learn how to install Arch Linux?
How much Linux do I need to know before I install Arch Linux?
How do I run MongoDB with XAMPP on Linux?
What are the steps to install Arch Linux 2017 version in VirtualBox?
Can you help me install Arch Linux on my PC?
How do you install MongoDB in Ubuntu 16.04?
Is there a MongoDB client application for Linux?

About · Careers · Privacy · Terms · Contact

You might also like