2017-08-12     15

今天使用node.js,发现在链接成功后,在使用ws.send()出现以下错误: InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable 解决方法: 把ws.send()写到ws.onopen事件里,就可以了

2017-08-16     27

今天使用node index.js的时候,出现以下错误: events.js:141 throw er; // Unhandled 'error' event ^ Error: listen EADDRINUSE at Object.exports._errnoException (util.js:870:11) at export

2018-03-04     7

查看CentOS版本 # rpm -q centos-release centos-release-6-8.el6.centos.12.3.x86_64 安装epel源 32位系统选择: rpm -ivh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm rpm -ivh http://dl.fedo

2018-05-09     1

function getIPAdress(){ var interfaces = require('os').networkInterfaces(); for(var devName in interfaces){ var iface = interfaces[devName]; for(var i=0;i<iface