会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Loading
老卫同学
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
9
下一页
2023年4月11日
go语言SSE客户端
摘要: 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)
2023年2月1日
ubuntu server 22.04 启用root远程ssh
摘要: 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)
2023年1月16日
nginx升级连接为websocket
摘要: 利用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)
go string()内置函数和strings.Itoa()
摘要: 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)
2023年1月11日
cron表达式
摘要: cron表达式基本含义 | 字段名 | 是否必须 | 允许的值 | 允许的特定字符 | | | | | | | 秒(Seconds) | 是 | 0-59 | * / , - | | 分(Minute) | 是 | 0-59 | * / , - | | 时(Hours) | 是 | 0-23 | *
阅读全文
posted @ 2023-01-11 10:45 老卫同学
阅读(125)
评论(0)
推荐(0)
2022年12月23日
denied: requested access to the resource is denied
摘要: 运行命令 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)
2022年11月24日
docker打开2375监听端口
摘要: 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)
2022年11月20日
pac
摘要: https://r0uter.github.io/ss.conf-for-surge/geoip_whitelist.conf
阅读全文
posted @ 2022-11-20 17:10 老卫同学
阅读(63)
评论(0)
推荐(0)
2022年11月9日
免费的API地址
摘要: 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)
2022年11月8日
bilibili_flutter_getx项目
摘要: bilibili_flutter_getx
阅读全文
posted @ 2022-11-08 17:37 老卫同学
阅读(25)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
下一页
公告