随笔分类 -  NodeJS + Socket.io

NodeJS,Socket.io
摘要:第一步:安装node >git clone https://github.com/joyent/node.git >cd node >git checkout v0.10.33-release >./configure >make >make install 第二步:安装npm mac下使用命令ru 阅读全文
posted @ 2016-02-24 16:10 Adtuu 阅读(182) 评论(0) 推荐(0)
摘要:var crypto = require('crypto');function decode(cryptkey, iv, secretdata) { var decipher = crypto.createDecipheriv('aes-256-cbc', cryptkey, iv), ... 阅读全文
posted @ 2015-07-30 09:45 Adtuu 阅读(806) 评论(0) 推荐(0)
摘要:live cam 录像页面 阅读全文
posted @ 2015-07-30 09:26 Adtuu 阅读(1692) 评论(0) 推荐(0)
摘要:如果是亚马逊的Engine Yard服务器,解决办法为:1、查看端口占用情况,找到nodejs进程号,例如我这里是8000端口lsof -i:8000 找到pid 例如为 82132、设置nofile数sudo prlimit --nofile=60000 --pid 82133、查看是否生效sud... 阅读全文
posted @ 2015-07-23 13:47 Adtuu 阅读(1413) 评论(0) 推荐(0)
摘要:第一步:安装nodegit clonehttps://github.com/joyent/node.gitcd nodegit checkout v0.10.33-release./configuremakemake install第二步:安装npm mac下使用命令ruby -e "$(curl... 阅读全文
posted @ 2015-07-23 13:34 Adtuu 阅读(592) 评论(0) 推荐(0)