Loading

摘要: package main import ( "fmt" "github.com/gin-gonic/gin" "github.com/r3labs/sse/v2" "net/http" "net/url" "strings" ) func main() { r := gin.Default() r. 阅读全文
posted @ 2023-04-11 01:16 老卫同学 阅读(1885) 评论(0) 推荐(0)
摘要: 1.设置root密码 sudo passwd root 2.修改sshd_config sudo nano /etc/ssh/sshd_config #添加以下配置 PermitRootLogin yes 3.重启ssh服务 sudo systemctl restart ssh.service 阅读全文
posted @ 2023-02-01 15:08 老卫同学 阅读(544) 评论(0) 推荐(0)
摘要: 利用nginx代理wss【通讯原理及流程】 wss协议实际是websocket+SSL,就是在websocket协议上加入SSL层,类似https(http+SSL)。 客户端发起wss连接连到nginx nginx将wss协议的数据转换成ws协议数据并转发到Workerman的websocket协 阅读全文
posted @ 2023-01-16 14:24 老卫同学 阅读(235) 评论(0) 推荐(0)
摘要: strconv.Itoa函数的参数是一个整型数字,它可以将数字转换成对应的字符串类型的数字。 package main import ( "fmt" "strconv" ) func main() { string_number := 97 result := strconv.Itoa(string 阅读全文
posted @ 2023-01-16 14:18 老卫同学 阅读(151) 评论(0) 推荐(0)
摘要: cron表达式基本含义 | 字段名 | 是否必须 | 允许的值 | 允许的特定字符 | | | | | | | 秒(Seconds) | 是 | 0-59 | * / , - | | 分(Minute) | 是 | 0-59 | * / , - | | 时(Hours) | 是 | 0-23 | * 阅读全文
posted @ 2023-01-11 10:45 老卫同学 阅读(125) 评论(0) 推荐(0)
摘要: 运行命令 docker push oldweipro/hik-dev:latest 返回 The push refers to repository [docker.io/oldweipro/hik-dev] An image does not exist locally with the tag: 阅读全文
posted @ 2022-12-23 15:16 老卫同学 阅读(43) 评论(0) 推荐(0)
摘要: 1、编辑dock er.service ,在[service]的ExecStart ,添加 -H tcp://0.0.0.0:2375 # vi /usr/lib/systemd/system/docker.service 2、在ExecStart ,添加 -H tcp://0.0.0.0:2375 阅读全文
posted @ 2022-11-24 14:15 老卫同学 阅读(287) 评论(0) 推荐(0)
摘要: https://r0uter.github.io/ss.conf-for-surge/geoip_whitelist.conf 阅读全文
posted @ 2022-11-20 17:10 老卫同学 阅读(63) 评论(0) 推荐(0)
摘要: https://api.iyk0.cn https://res.abeim.cn/api https://api.vvhan.com https://api.uomg.com https://ip-api.com/ 视频解析(等号后面跟视频链接!) https://jx.mw0.cc/?url= h 阅读全文
posted @ 2022-11-09 01:02 老卫同学 阅读(1189) 评论(0) 推荐(0)
摘要: bilibili_flutter_getx 阅读全文
posted @ 2022-11-08 17:37 老卫同学 阅读(25) 评论(0) 推荐(0)