- 博客(55)
- 资源 (5)
- 收藏
- 关注
原创 The HTTP response from the server [200] did not permit the HTTP upgrade
服务端授权验证失败终止链接。
2024-02-18 21:03:22 368
原创 复制http请求body
复制http请求// BodyDumpWithConfig returns a BodyDump middleware with config.// See: `BodyDump()`.func BodyDumpWithConfig(config BodyDumpConfig) echo.MiddlewareFunc { // Defaults if config.Handler == nil { panic("echo: body-dump middleware requires a h
2021-04-23 18:30:56 530
原创 swagger 语法
导入项目的文档位置import _ "git.zzpxx.com/backend/xxx/docs" // docs is generated by Swag CLI, you have to import it.// @title Swagger Example API// @version 1.0// @description This is a sample server Petstore server.// @termsOfService http://swagger.io/term.
2021-04-12 17:55:03 391
原创 docker 屏蔽掉Dockerfile的entrypoint执行命令
docker run --entrypoint=/bin/sh -it t1
2021-03-24 15:35:03 1124
原创 ignore 只针对存在唯一索引的字段有效
create table test(id int auto_increment primary key ,a varchar(60),unique index(a)); MySQL [msg_center_dev]> select * from test; +----+------+| id | a |+----+------+| 1 | a |+----+------+1 row in set (0.004 sec)MySQL [msg_center_dev...
2021-03-11 11:37:00 283
原创 mysql Row size too large. The maximum row size for the used table type, not counting BLOBs, is 65535
Row size too large. The maximum row size for the used table type, not counting BLOBs, is 65535.行的长度不能超过65535,即列的大小总和除了BLOBs longtext类型,总大小不能超过65535,修改列的大小,并将部分列修改为longtext...
2021-01-14 12:29:53 387
原创 python下载torch指定版本
pip install torch==1.6.0 -f https://download.pytorch.org/whl/torch_stable.html
2020-10-27 09:14:16 2003
原创 完整的IM架构设计
服务的主体功能为提供消息的在线转发和离线消息的获取。从产品侧角度,衍生出多平台的同步转发、互踢及群组的需求。功能上需要提供消息指定路由转发、是否持久化、在线离线机制、心跳包、通知送达、授权验证等。从技术层次上划分,网络层提供长连接/短连接的服务,路由层提供转发,存储层提供持久化。额外的产品需求,还包含第三方的推送和订阅服务。整体结构如下图:具体功能:1、用户接入及消息流程如下图,用户登陆获取授权,通过jwt token 接入websocket,发送心跳及消息,消息路由到指定的..
2020-10-23 11:01:39 3489 2
原创 Coredns CrashLoopBackOff
Failed to list *v1.Namespace: Get https://10.96.0.1:443/api/v1/namespaces?limit=500&resourceVersion=0: dial tcp 10.96.0.1:443: connect: no route to host路由问题:iptables -L解决:先缩减kubectl scale --replicas=0 deploy/coredns -n kube-system再增加kub...
2020-10-09 16:21:02 709
原创 redis批量删除键
~/redis-cli -h 127.0.0.1 -a passwd --raw keys "IM_GROUP_MEMBERS_*" | xargs ~/redis-cli -h 127.0.0.1 -a passwd del
2020-08-20 16:59:31 211
原创 group by sql_mode=only_full_group_by 问题
mysql> select id from topic group by update_time having count(update_time) > 1;ERROR 1055 (42000): Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'imdb.topic.id' which is not functionally dependent on co...
2020-08-14 15:34:03 114
原创 mysql修改时间列精度
6位小数:CREATE TABLE `topic2`(`update_time` timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),`detail_location` varchar(1024) DEFAULT '' COMMENT '详细地址');mysql> insert into topic2(detail_location)values('dddd');Query OK
2020-08-14 14:41:10 413
原创 ES term match query_string 区别
"type": "keyword" "text" "keyword" 不分词,"text"分词term 匹配的是分词后的结果,"text"分词后包含term即匹配中,故要使用term完全匹配,必须配置属性为keyword不分词match会被分词,而keyword不会被分词,match的需要跟keyword的完全匹配可以。match分词,text也分词,只要match的分词结果和text的分词结果有相同的就匹配。match_phrase是分词的,text也是分词的。match_phra..
2020-08-04 14:24:24 633
原创 maven编译失败了Could not find artifact jdk.tools:jdk.tools:jar:1.6
下载jdk1.8 ,jdk14 没有tools.jar文件
2020-07-30 19:30:07 1039
原创 nats安装
docker run -d --name nats-main -p 4222:4222 -p 6222:6222 -p 8222:8222 nats
2020-07-22 18:58:37 429
原创 go build
set GOOS=linuxset GOARCH=amd64set CGO_ENABLED=0go build create_consume_group.go
2020-07-10 17:32:57 193
原创 删除指定前缀的镜像
docker images |grep xxx | awk -F' ' '{print $1}' | xargs docker rmi
2020-07-07 11:34:08 981
原创 docker “exec: \“-v\“: executable file not found in $PATH“.
挂载参数位置问题如修改挂载参数顺序即可docker run -it -v /hostpath:/work/conf --name test8 test
2020-07-02 10:33:56 5389
原创 conda 安装本地pytorch
win10conda install pytorch torchvision cudatoolkit=10.2 -c pytorchwget https://conda.anaconda.org/pytorch/win-64/pytorch-1.5.1-py3.7_cuda102_cudnn7_0.tar.bz2放到D:\anaconda3\pkgs安装conda install --use-localD:\anaconda3\pkgs\pytorch-1.5.1-py3.7_cud...
2020-07-01 11:11:53 4737
原创 mysql导表数据
导出表结构及数据mysqldump -uroot -hxxx.com -pxxx dbname tablename > tablename.txt仅导出表结构加 -dmysqldump -uroot -hxxx.com -pxxx -d dbname tablename > tablename.txt备份所有数据库mysqldump -u root -p --all-databases > database_dump.txt导出库mysqldump -u...
2020-05-11 16:17:19 127
原创 ansible
yum install ansibleansible-doc -l 查看模块vi /etc/ansible/hosts[test]server01 ansible_ssh_host=47.106.x.xxxansible_ssh_user=root ansible_ssh_pass=xxxxStrictHostKeyChecking=o其中,test为组名执行脚本...
2020-04-26 15:52:09 83
原创 git 撤销
git commit修改 :git commit --amendgit add之后取消add:git reset HEAD 文件名git 撤销文件的修改git checkout -- 文件名
2020-04-26 09:15:17 101
原创 supervisor安装
yum install supervisorvi /etc/supervisord.d/im.ini[program:imdb]directory=/home/dhwl/distribute_dim_test/DBcommand=sh startdim.shautostart=trueautorestart=truestderr_logfile=/tmp/dim_db_std...
2020-04-17 18:27:14 119
原创 crontab范例
sudo vi /etc/crontab# Example of job definition:# .---------------- minute (0 - 59)# | .------------- hour (0 - 23)# | | .---------- day of month (1 - 31)# | | | .------- month (1 - 12) O...
2020-04-14 17:39:08 123
原创 mysql日期
select date_add(curdate(),interval -1 day) 前一天select date_add(curdate(),interval 1 day) 后一天参考:https://www.cnblogs.com/pandaly/p/10267950.html
2020-04-10 16:51:16 230
原创 git指定commit提交的代码
git checkout -f b2c09faf6167dbc1a3901190ceccc2cd16d605de
2020-04-09 16:35:21 902
原创 nginx json日志
http {log_format log_json escape=json '{"@timestamp": "$time_local","user_ip":"$http_x_real_ip","remote_addr":"$remote_addr","log_time":"$time_iso8601","user_req":"$request","request_body":"$reque...
2020-03-30 11:31:39 259
原创 go tool pprof
package mainimport _ "net/http/pprof"func main() { go func() { http.ListenAndServe("0.0.0.0:6060", nil) }()select {}}[root@localhost dim-server]# go tool pprof...
2020-03-25 15:24:12 151
原创 jenkins 更换用户
sudo chown -R XXX:xxxx/usr/lib/jenkins/usr/lib/jenkins/jenkins.war/usr/sbin/rcjenkins/var/cache/jenkins/var/lib/jenkins/var/log/jenkins修改sudo vi /etc/sysconfig/jenkinsJENKINS_USER="user...
2020-03-25 09:32:09 777
原创 git add
· git add -A 提交所有变化·git add -u 提交修改和被删除文件,不包括新文件·git add . 提交新文件和被修改文件,不包括被删除文件
2020-03-25 09:24:15 69
原创 git rebase
分支合并比如master合并dev分支先切到dev分支 git checkout dev创建本地分支git checkout -b dev dev-1在dev-1 中git rebasemaster解决冲突后git add . 然后git rebase --continue,过程中出现Applying: addNo changes - did you forget...
2020-03-23 15:34:02 368
原创 kafka查看消费
bin/kafka-topics.sh --zookeeper 127.0.0.1:2181 --list //查看topicbin/kafka-consumer-groups.sh --bootstrap-server localhost:9092 --list //查看消费组bin/kafka-consumer-groups.sh -bootstrap-server localhost...
2020-03-09 19:59:00 188
原创 plugin:elasticsearch@6.2.2 Unable to connect to Elasticsearch at http://localhost:9200.
重启:elk_elk_1 docker容器
2020-03-08 19:09:20 819
apache-tomcat-8.5.56.update.tar.gz
2020-07-02
qt mysql数据库驱动
2013-09-14
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人