SiteCozy

  • My account

How to install nodeBB on centos 7

2018-08-17

nodeBB is a free internet forums software powered by nodeJS (javascript) and the mongoDB database. 

sudo yum install epel-release -y && yum install nodejs -y

Install mongodb server and client

yum -y install mongodb-server && yum -y install mongodb // install server and client
systemctl enable mongod // activate it for startup
systemctl start mongod // start the server
mongo // open mongodb console thanks to the mongodb client

Add a nodeBB user to mongoDB

mongo // go to the console
use nodebb // create the nodebb database

change the password and copy and past the code below

db.createUser(
  {
    user: "mongoadmin",
    pwd: "mongoadmin",
    roles: [ "readWrite" ]
  }
)

type enter then type “exit” to exit the console

Activate mongoDB authorization

nano /etc/mongod.conf
uncomment #auth = true
systemctl restart mongod
yum -y groupinstall "Development Tools" && yum -y install git ImageMagick 
git clone -b v1.10.x https://github.com/NodeBB/NodeBB.git nodebb // copy the installation files to the server
cd nodebb
./nodebb setup

Related Posts:

  • How to install nodeBB on ubuntu
  • How to install MongoDB community on ubuntu 18
  • Where is the mongodb log file on Linux?
Download our Broken link checker freeware here Buy a license key for the Sitecozy broken link checker

Customer Login

Lost password?

Categories

  • Webmaster advice
  • SEO advice
  • Web hosting
  • SiteCozy link checker KB
  • WordPress theme & plugin reviews
  • All articles
Disclosure: We are a professional review site that receives compensation from the companies whose products we review. We test each product thoroughly and give high marks to only the very best. We are independently owned and the opinions expressed here are our own.

Copyright Sitecozy 2018