03 2020 档案
摘要:修改表tax_version添加up_content属性为text类型非空,注释为“更新内容”,字段添加再“name”属性后面 ALTER TABLE `tax_version` ADD `up_content` TEXT NOT NULL COMMENT '更新内容' AFTER `name`;
阅读全文
摘要:因为没有文件上传,没有大的字节传输,数据过来就放到队列,所以没有用异步,使用同步方式接收数据。 原理: 1.前面四个字节是消息头,存放消息体长度; 2.后面字节定义消息体; 3.服务端收到消息后,先获取消息头部,如果不够继续接收;如果够了则根据头部计算出消息体长度; 4.根据消息头标记的长度获取消息
阅读全文
摘要:foreach (var dic in sockets) { if (dic.Value.Poll(1000, SelectMode.SelectRead)) { dic.Value.Close();//关闭socket sockets.TryRemove(dic.Key, out Socket s
阅读全文
摘要:错误代码记得不是很清楚了,大概的意思是:ngx_libc_crypt方法里面的current_salt有问题,。 我之前在centos7上安装的是nginx1.12.2,没遇到过这个问题。 现在是centos8了,貌似安装低版本的nginx有这个问题,后来我下载了nginx1.17.9最新的,就OK
阅读全文
摘要:具体详细错误信息:The instance of entity type 'xxx' cannot be tracked because another instance with the same key value for {'Id'} is already being tracked. Whe
阅读全文