先安装Mongodb(参考此文http://briteming.blogspot.co.uk/2014/04/linux-vpsnodejsmongodb-scotch.html的蓝色部分)
git clone https://github.com/jawerty/Node2Blog node2blog
cd node2blog
npm install
nohup node blog > /dev/null & (这个就是启动博客站点的命令。The blog should be running on your localhost at the 3000 port。访问http://as3.brite.biz:3000/即可看到网站效果。)
登录地址:http://as3.brite.biz:3000/admin,默认的密码为narwhal,若要修改密码,修改blog.js文件里的password的值即可。若要改端口,修改blog.js文件的这行:
app.set('port', process.env.PORT || 3000);
把3000端口改为其他端口,比如我改为了3057.
as3:~/node2blog# ls
blog.js LICENSE package.json README.md views
db.js node_modules public routes
as3:~/node2blog#
演示站点:http://as3.brite.biz:3057/,
项目地址:https://github.com/jawerty/Node2Blog
https://github.com/kenshiro-o/Node2Blog (此为fork后的修改版)
相关帖子:http://briteming.blogspot.co.uk/2014/04/linux-vpsnodejsmongodb-scotch.html
git clone https://github.com/jawerty/Node2Blog node2blog
cd node2blog
npm install
nohup node blog > /dev/null & (这个就是启动博客站点的命令。The blog should be running on your localhost at the 3000 port。访问http://as3.brite.biz:3000/即可看到网站效果。)
登录地址:http://as3.brite.biz:3000/admin,默认的密码为narwhal,若要修改密码,修改blog.js文件里的password的值即可。若要改端口,修改blog.js文件的这行:
app.set('port', process.env.PORT || 3000);
把3000端口改为其他端口,比如我改为了3057.
as3:~/node2blog# ls
blog.js LICENSE package.json README.md views
db.js node_modules public routes
as3:~/node2blog#
演示站点:http://as3.brite.biz:3057/,
项目地址:https://github.com/jawerty/Node2Blog
https://github.com/kenshiro-o/Node2Blog (此为fork后的修改版)
相关帖子:http://briteming.blogspot.co.uk/2014/04/linux-vpsnodejsmongodb-scotch.html