Install NodeBB on Ubuntu

本文提供了一个详细的步骤来安装NodeBB论坛软件。从确保Node.js已安装开始,到配置MongoDB数据库,再到完成NodeBB的安装过程。此外还包含了有用的提示和链接。

NodeBB is a free mobile first discussion platform with instant notifications. It comes with analytics dashboard, real time chat, built in localization support along with plugins and themes to enhance it even more.

Before we get started, make sure you sign up for a new account through our link and get your $10 creditwhich is equal to two months of free service on the 512MB plan!

Check your system and make sure you have node installed.

node --version

If it’s not on your system, you can follow the Install Node And Verify Version On Ubuntu guide. Once you are ready, proceed to the next page.

Now for the NodeBB installation

cd ~
sudo apt install -y git
git clone -b v1.0.3 https://github.com/NodeBB/NodeBB.git nodebb
cd nodebb
npm install --production

Tip: for new installs, check for the newest release at https://github.com/NodeBB/NodeBB/releases and replace v1.0.3 with the number that is displayed above

Before you proceed to the next step, make sure you have MongoDB. You can follow the Install MongoDB on Ubuntu guide if it’s not installed.

Now to get the database ready for NodeBB, open terminal and type the following

mongo
use nodebb
db.createUser( { user: "nodebb", pwd: "nodebbpwd", roles: [ "readWrite" ] } )
exit

NOTE: you should replace nodebb and nodebbpwd with your own!!

 Start the NodeBB web installer

npm start

Open the web browser and visit http://www.devporto.com:4567
You will need to replace www.deporto.com with your domain name or IP address.

Fill out all the details under the Create an Administrator account section

For the Configure your database section, you will need to make the following changes:

Database type: MongoDB
MongoDB username: nodebb
Password of your MongoDB database: nodebbpwd
Which database to use: nodebb

Note: MongoDB username and password along with database name should match what you previously setup.

When you are ready, click Install NodeBB

If everything goes smoothly, you will see Congratulations! Your NodeBB has been set-up.

At this point, click Launch NodeBB and have fun!

If you are stuck at any point, you can watch this video to see all the steps

转载于:https://my.oschina.net/feanlau/blog/1438921

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值