Loading

上一页 1 ··· 3 4 5 6 7 8 9 10 11 12 下一页
摘要: 用到微软Azure的一个库fetch-event-sourcec GitHub地址https://github.com/Azure/fetch-event-source #安装命令 npm install --save @microsoft/fetch-event-sourcec 下面是示例代码 / 阅读全文
posted @ 2023-04-11 01:20 老卫同学 阅读(3807) 评论(0) 推荐(2)
摘要: 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 老卫同学 阅读(2090) 评论(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 老卫同学 阅读(592) 评论(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 老卫同学 阅读(282) 评论(0) 推荐(0)
摘要: strconv.Itoa函数的参数是一个整型数字,它可以将数字转换成对应的字符串类型的数字。 package main import ( "fmt" "strconv" ) func main() { string_number := 97 result := strconv.Itoa(string 阅读全文
posted @ 2023-01-16 14:18 老卫同学 阅读(194) 评论(0) 推荐(0)
摘要: cron表达式基本含义 | 字段名 | 是否必须 | 允许的值 | 允许的特定字符 | | | | | | | 秒(Seconds) | 是 | 0-59 | * / , - | | 分(Minute) | 是 | 0-59 | * / , - | | 时(Hours) | 是 | 0-23 | * 阅读全文
posted @ 2023-01-11 10:45 老卫同学 阅读(157) 评论(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 老卫同学 阅读(64) 评论(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 老卫同学 阅读(311) 评论(0) 推荐(0)
摘要: https://r0uter.github.io/ss.conf-for-surge/geoip_whitelist.conf 阅读全文
posted @ 2022-11-20 17:10 老卫同学 阅读(73) 评论(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 老卫同学 阅读(1702) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 12 下一页