[转]NodeBB 环境搭建

本文转自:https://my.oschina.net/pauli/blog/198405

 

摘要: Windows 7 下面 NodeBB (https://nodebb.org/)环境搭建                             

                

资料

依赖

命令行设置

下载 nodebb代码:

cd D:\
git clone git://github.com/designcreateplay/NodeBB.git nodebb

如果没有安装 git,可以下载压缩包:https://github.com/designcreateplay/NodeBB/archive/master.zip

设置 MongoDB 数据库

cd D:\nodebb
mkdir db
start mongod.exe --dbpath .\db
mongo
use nodebb
db.addUser( { user: "admin", pwd: "admin", roles: [ "userAdmin" ] } )
mongod stop
start mongod.exe --setParameter textSearchEnabled=true --rest --dbpath .\db

安装 nodebb,启动服务:

cd D:\nodebb
npm install
node app --setup
sh nodebb start

node app 启动好像不行,还好本地有 cygwin,就直接运行 sh nodebb start

成功

地址:http://localhost:4567/ (管理员,用户名/密码:admin/ admin)

snapshot snapshot

posted on 2018-05-03 17:45  freeliver54  阅读(484)  评论(3编辑  收藏  举报

导航