Results 1 to 3 of 3

Thread: HOW TO: Install MongoDB & UBNT mFI

Hybrid View

  1. #1
    Join Date
    Jun 2007
    Beans
    41

    HOW TO: Install MongoDB & UBNT mFI

    Before you start login as root

    Code:
    sudo su
    Step 1: Add APT Repository

    First import public key of 10gen repository in our system

    Code:
    $ apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
    Lets add 10 gen MongoDB APT repository url in /etc/apt/sources.list.d/mongodb.list.

    Code:
    $ echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list
    After adding required APT repositories, use following commands to install MongoDB in your systems. It will also install all dependent packages required for mongodb.

    Code:
    $ apt-get update
    Code:
    $ apt-get install mongodb-org
    Step 3: Start/Stop MongoDB Service

    Start/Stop MongoDB using Init script. Below are the example commands to do it.

    Code:
    # service mongod stop
    Code:
    # service mongod start
    Step 4: Verify MongoDB Installation

    Use following command to check installed mongodb version

    $
    Code:
    mongo --version
    Step 5: Initialise and test the database

    $
    Code:
    mongod
    MongoDB shell version: 2.6.3
    Connect MongoDB using command line and execute some test commands for checking proper working.

    Code:
    $ mongo
    Code:
    > db.test.save( { admintest: 100 } )
    Code:
    > db.test.find()
    Code:
      { "_id" : ObjectId("52b0dc8285f8a8071cbb5daf"), "admintest" : 100 }
    Step 6: Install of the mFI Controller

    You'll need to add the repo to the sources list

    Code:
    $ nano /etc/apt/sources.list
    Scroll to the bottom and add the following line

    Code:
    deb http://www.ubnt.com/downloads/mfi/distros/deb/ubuntu ubuntu ubiquiti
    Step 7: add GPG Key

    Code:
     apt-key adv --keyserver keyserver.ubuntu.com --recv C0A52C50

    Step 8: Install mFI Controller

    Update packet list:

    Code:
    $ apt-get update
    Install:

    Code:
    $ apt-get install mfi

    Step 8: Test

    The mFi webUI can be reached via the local machines ip address https://192.168.1.10:6443/

    Change the ip to match your machine.

  2. #2

    Re: HOW TO: Install MongoDB & UBNT mFI

    When I type mongo
    I got the following error.
    MongoDB shell version: 2.4.9
    connecting to: test
    Sat May 23 22:52:21.026 Error: couldn't connect to server 127.0.0.1:27017 at src/mongo/shell/mongo.js:145
    exception: connect failed

  3. #3
    Join Date
    May 2015
    Beans
    1

    Re: HOW TO: Install MongoDB & UBNT mFI

    mFi failed to install due to two packes "damaged":
    mongodb-10gen and mongodb-server

    How to proceed?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •