How to Install MongoDB

To install the MongoDB NoSQL database server, log in to your server as the root user and run the following command:

sudo apt-get install mongodb

Once installed, MongoDB will listen on port 11211.

Accessing MongoDB from PHP

To interact with the MongoDB server from your PHP scripts, you need to install the PHP Mongo client extension.

Customizing Your Firewall for MongoDB

The firewall configured by SellCloud will block all access to MongoDB from outside of your server. If you need to have other servers access MongoDB, you'll need to customize your firewall using a tool such as HeatShield.

Learn more about customizing your firewall.

Alert: For Control Panel Help & Tutorials, click here: Panel Tutorials
  • 0 Benutzer fanden dies hilfreich
War diese Antwort hilfreich?

Verwandte Artikel

Gzip Compression is Enabled by Default

SellCloud automatically enables gzip compression on all of your apps. How Gzip Compression Works...

HostGator Alternative

Over the past decade, the web hosting industry has changed. Developers all over the world have...

How Log Rotation Is Configured

SellCloud configures daily log rotation for your application's log files. One week's worth of log...

How to Automatically Deploy a Git Repo from Bitbucket

This article shows you how to automatically deploy your app from a git repo hosted at Bitbucket....

How to Change the Timezone of Your Server

You can change your server's timezone by SSHing in to your server as root and running this...