#3000

php Connection timed out after 30000 milliseconds

 functionHttpRequest($url,$params,$method='GET',$header=array(),$bEncode=true){$opts=array(CURLOPT_TIMEOUT=>30,CURLOPT_RETURNTRANSFER=>1,CURLOPT_SSL_...

报错:SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'admin' for key 'username'

在提交注册信息的时候报错:SQLSTATE[23000]:Integrityconstraintviolation:1062Duplicateentry'admin'forkey'username'原因:主键冲突  违反完整性约束字段唯一索引  从上图可以看出,用户名和邮箱必须唯...

Error: listen EADDRINUSE :::3000

错误详细信息如下:events.js:183thrower;//Unhandled'error'event^Error:listenEADDRINUSE:::3000atServer.setupListenHandle[as_listen2](net.js:1360:14)atlistenInCluster(net.j...
代码星球 ·2020-07-24

mongo连接不上Timed out after 30000

    本地连接mongo报错,错误代码为:Causedby:com.mongodb.MongoTimeoutException:Timedoutafter30000mswhilewaitingforaserverthatmatchesWritableServerSelector...

Port 3000 is already in use

cmd输入:netstat-ano|findstr:3000//查看是谁占用了3000号端口显示如下TCP0.0.0.0:30000.0.0.0:0LISTENING18412TCP[::]:3000[::]:0LISTENING18412接着输入:taskkill-PID18412-F//结束端口号解决!  ...
代码星球 ·2020-04-10

Javascript格式化json返回的时间(/Date(1482747413000)/)

//时间处理,类似/Date(1482747413000)/的形式,得到xxx年xx月xx日11:11:11functionChangeDateFormat(jsondate){jsondate=jsondate.replace("/Date(","").replace(")/","");if(jsondate.ind...
首页上一页12下一页尾页