SiteCozy

  • My account

How to install nodeBB on ubuntu

2018-08-18

nodeBB requires nodeJS, git and mongoDB to be installed on the ubuntu server. NodeJS is the Javascript server, mongoDB is the database and git allows to copy the code from the online git repository to the web server.

NodeJS installation

curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt-get install -y nodejs

MongoDB installation & configuration

>sudo apt-get install mongodb-server
>mongo
>use nodebb
>db.createUser({user: “mongoadmin”,pwd: “yourpass”,roles: [“readWrite” ]})
>use admin
>db.createUser( { user: “admin”, pwd: “yourpassword”, roles: [ { role: “readWriteAnyDatabase”, db: “admin” }, { role: “userAdminAnyDatabase”, db: “admin” } ] } )
>exit
>echo “auth=true” >> mongodb.conf
>sudo systemctl restart mongodb

nodeBB script installation


>sudo apt-get install nodejs && sudo apt-get install npm git
>cd yourfolder
>git clone -b v1.10.x https://github.com/NodeBB/NodeBB.git nodebb
>cd nodebb
./nodebb setup
>nano config.json // in the url replace the localhost with the IP, hostname that you will use to access the forum. example: “url”: “http://192.168.1.203:4567″,

Related Posts:

  • How to install nodeBB on centos 7
  • How to install MongoDB community on ubuntu 18
  • How to retrieve data from MongoDB with NodeJS
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