随笔分类 - Node js
摘要:var fs = require('fs');///读取配置问题的方法function readFile() { var fileStr = fs.readFileSync('c:\\config.json', {encoding:'binary'}); var buf = new Buffer(f
阅读全文
摘要:https://nodejs.bootcss.com/ node.js 中文网 pm2命令 pm2 start xxx.js 启动某文件 必须是xxx.jspm2 restart xxx 重启pm2 ls 或者pm2 list 查询当前pm2 运行的列表pm2 deltet xxx 杀掉项目pm2
阅读全文