ahjesus让nodejs支持dotjs模板
摘要:经过几天的实验加搜索,终于知道一个中间件可以解决这个问题了npm install consolidateconsolidate传送门 传送门2使用说明传送门快照:ahjesusSince doT (and probably your template engine of choice, as wel...
阅读全文
ahjesus用forever管理nodejs服务
摘要:全局安装forevernpm install -g forever 查看帮助forever -h查看安装位置whereis forever编写自己的sh文件 forever -p web文件路径 -l 路径/access.log -e 路径/error.log -o 路径/out.log -a --...
阅读全文
Ahjesus Nodejs02 使用集成开发环境
摘要:下载最新版webstorm,选择此集成开发环境是因为支持性较好,在vs下也有插件支持,不过感觉有些牵强附vs插件NTVS详细介绍安装好以后就需要配置npmNPM 国内高速镜像source:http://npm.cbyun.com/# speed testtime npm --registry http://npm.cbyun.com install express# result--wtf?npm --registry http://npm.cbyun.com install express 1.62s user 0.49s system 59% cpu 3.569 total测试期频繁同步.
阅读全文
Ahjesus Nodejs01 环境搭建及运行
摘要:访问http://nodejs.org/,根据系统选择下载文件,我用的win7 64安装一路下一步直到完成运行cmd输入node -v查看是否安装成功成功会显示版本号到此环境搭建完毕===========================================割了========================================验证环境及运行新建文件夹 D:\NodeJsApp内建app.js并输入代码//app.js varhttp = require('http'); http.createServer(function(req, res) { res
阅读全文