• Contact
  • Contact Us
  • Disclamer
  • Home 1
  • Home 2
  • Home 3
  • Privacy Policy
Saturday, May 10, 2025
How VPS - How to use/setup VPS
  • Login
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon
No Result
View All Result
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon
No Result
View All Result
How VPS - How to use/setup VPS
No Result
View All Result
Home Operating System BSD

Installing MongoDB on FreeBSD 10

How VPS by How VPS
September 1, 2019
in BSD
0
0
SHARES
26
VIEWS
Share on FacebookShare on Twitter

Contents

  1. Step 1: Update Package Repository
  2. Step 2: Install MongoDB
  3. Step 3: Start and Verify MongoDB
  4. Step 4: Start Mongo on Boot
  5. Want to contribute?


MongoDB is a world-class NoSQL database that is frequently used in newer web applications. It provides high performance queries, sharding, and replication. This article will show you how to install MongoDB onto FreeBSD 10.x. This article will work for both x86 and x64 architectures, but note that MongoDB works best on a 64-bit architecture.

Step 1: Update Package Repository

To make sure everything is up to date before installing MongoDB, run the following command.

pkg update

If you get a prompt stating that the “package management tool” is not available, type Y, then press Enter for it to continue. You can run pkg update -f to force the update, if needed. Otherwise, continue to step 2.

Step 2: Install MongoDB

Install MongoDB with the following command.

pkg install mongodb

Step 3: Start and Verify MongoDB

Verify the installation of MongoDB. This command will start the service.

service mongod onestart

Once the text “Starting mongod.” shows on the screen, you’ll be able to use the mongo shell. Run mongo now. You will be presented with an interactive console. The console will resemble the following.

MongoDB shell version: 2.6.7
connecting to: test
Welcome to the MongoDB shell.
For interactive help, type "help".
For more comprehensive documentation, see
    http://docs.mongodb.org/
Questions? Try the support group
    http://groups.google.com/group/mongodb-user

At any time, you can verify that the Mongo service (mongod) is running by using the command service mongod onestatus.

Step 4: Start Mongo on Boot

If you do not wish to use “onestart” for starting Mongo on boot, you can configure it to work with start instead. To do so, edit /etc/rc.conf with vi or your favorite editor and add mongod_enable="YES" to the file. Once complete, it will now start on boot of your server, and you can now use service mongod start to start the Mongo service. Other service commands such as stop and status will be available as well.

Want to contribute?

You could earn up to $300 by adding new articles

Submit your article
Suggest an update
Request an article
Previous Post

How to Resize a Disk in FreeBSD

Next Post

How to Install Selfoss RSS Reader on a FreeBSD 11 FAMP VPS

Next Post

How to Install Selfoss RSS Reader on a FreeBSD 11 FAMP VPS

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

No Result
View All Result

Recent Post

Install Imagemagick on CentOS
CentOS

Install Imagemagick on CentOS

by How VPS
June 28, 2023
0

This is how I installed Imagemagick on a vanilla CentOS server Start off by installing the prerequisites yum install php-pear...

Read more
how to Check phpinfo

How to Check phpinfo of Hosting or VPS?

June 28, 2023
Failed to download metadata for repo 'appstream' on Centos 8

How to fix error: Failed to download metadata for repo ‘appstream’ on Centos 8

February 25, 2022
How to Fix MySQL Error "Plugin 'InnoDB' registration as a STORAGE ENGINE failed"?

How to Fix MySQL Error “Plugin ‘InnoDB’ registration as a STORAGE ENGINE failed”?

November 17, 2020
How to optimize Mysql or MariaDB

How to optimize Mysql or MariaDB

November 3, 2020

Recent News

  • Install Imagemagick on CentOS
  • How to Check phpinfo of Hosting or VPS?
  • How to fix error: Failed to download metadata for repo ‘appstream’ on Centos 8

Category

  • Arch
  • Authentication
  • Backups
  • BSD
  • Centmin Mod
  • CentOS
  • Control Panels
  • CoreOS
  • CWP
  • Debian
  • Directadmin
  • Encryption
  • Fedora
  • Firewalls
  • Hocvps Script
  • Hosting providers
  • Kloxo-MR
  • Linux
  • Mitigations
  • Operating System
  • Plesk
  • Reviews
  • Securing VPS/Servers
  • Security Patches
  • SSL Certificates
  • Uncategorized
  • Upgrading
  • VPS/Servers management guides
  • Vulnerability Detection
  • Web servers software
  • Webhosting Control Panel
  • About
  • Advertise
  • Careers
  • Contact

© 2025 JNews - Premium WordPress news & magazine theme by Jegtheme.

No Result
View All Result
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon

© 2025 JNews - Premium WordPress news & magazine theme by Jegtheme.

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In
Thabet