NodeBB
https://docs.nodebb.org/installing/os/ubuntu/
Installing Node.js
Install NVM
Install Node.js
Test Node.js
Installing MongoDB
Import the public key used by the package management system.
Create a list file for MongoDB
Reload local package database
Install the MongoDB packages
Verify installation of MongoDB
Start MongoDB
Verify that MongoDB has started successfully
You can optionally ensure that MongoDB will start following a system reboot
Configure MongoDB
Switch to the built-in admin database:
admin database:Create an administrative user:
Add a new database called nodebb:
nodebb:Create the nodebb user with the appropriate privileges:
nodebb user with the appropriate privileges:Exit the Mongo Shell:
Enable database authorization in the MongoDB configuration file
Restart MongoDB and verify the administrative user created earlier can connect:
Installing NodeBB
First, we must install git as it is used to distribute NodeBB:
Installing Nginx
NodeBB by default runs on port 4567, meaning that by default you must access it using a port number in addition to the hostname (e.g. http://example.org:4567)
In order to allow NodeBB to be served without a port, Nginx can be set up to proxy all requests to a particular hostname (or subdomain) to an upstream NodeBB server running on any port.
Verify the installation of Nginx
Run Nginx
Configuring Nginx
NGINX-served sites are contained in a server block which are normally stored in separate files from the main Nginx config (which is very rarely edited).
When installing with the ppa above, the best way to install new Nginx configs is to add new files in /etc/nginx/sites-available (like /etc/nginx/sites-available/forum.example.org). You then must link these files from sites-available to sites-enabled.
The following demonstrates a typical series of commands when creating a new nginx config:
Last updated
Was this helpful?