会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
bhxuwei
博客园
首页
新随笔
联系
订阅
管理
2024年8月21日
docker daemo.json文件
摘要: 国内无法访问下载 Docker 镜像的多种解决方案: https://www.upx8.com/4273 修改docker配置文件,如下, vi /etc/docker/daemo.json { "data-root": "/home/docker", "registry-mirrors": [ "
阅读全文
posted @ 2024-08-21 12:08 bhxuwei
阅读(163)
评论(0)
推荐(0)
2024年7月31日
k8s 备忘
摘要: 删除容器 kubectl get pods | grep 0/1 | awk '{print $1}' | xargs -I {} kubectl delete pod {} --force --grace-period=0 kubectl delete pod my-milvus-proxy-7f
阅读全文
posted @ 2024-07-31 15:10 bhxuwei
阅读(28)
评论(0)
推荐(0)
2024年7月3日
Docker容器运行多个命令,有一个报错就重启容器
摘要: 核心是entrypoint.sh脚本中的内容。 Dockerfile案例 FROM python:3.9.16 WORKDIR /code ADD requirements.txt /code/requirements.txt RUN pip install -i https://pypi.tuna
阅读全文
posted @ 2024-07-03 17:27 bhxuwei
阅读(24)
评论(0)
推荐(0)
2023年12月11日
nginx 正则
摘要: 坑点 ginx location 正则 alias 和 try_files, 存在排斥情况,不能一起使用,要使用root。 案例如下 # 老版本门户前端 location ^~ /assets { alias /usr/share/nginx/homepage_test/assets/; # 老版本
阅读全文
posted @ 2023-12-11 17:59 bhxuwei
阅读(47)
评论(0)
推荐(0)
2023年11月30日
golang http请求 tcp连接没有关闭
摘要: 参考链接 https://studygolang.com/articles/3138 func dialTimeout(network, addr string) (net.Conn, error) { return net.DialTimeout(network, addr, time.Secon
阅读全文
posted @ 2023-11-30 10:20 bhxuwei
阅读(84)
评论(0)
推荐(0)
2023年8月23日
k8s 相关
摘要: 转载至:https://blog.51cto.com/u_15287666/5805969 ## 查询所有命名空间下image运行起来的资源 ``` kubectl get all -o wide -A ``` 缺点:这种方法 kubectl get all 其实查询出来不是全部资源,仅仅是常用资源
阅读全文
posted @ 2023-08-23 14:11 bhxuwei
阅读(51)
评论(0)
推荐(0)
2023年8月7日
Gunicorn和Uvicorn
摘要: WSGI:Web服务器网关接口(Python Web Server Gateway Interface,缩写为WSGI)是为Python语言定义的Web服务器和Web应用程序或框架之间的一种简单而通用的接口。 Gunicorn 是一个使用 WSGI 标准的应用服务器。 Flask 和 DJango可
阅读全文
posted @ 2023-08-07 16:05 bhxuwei
阅读(1787)
评论(0)
推荐(0)
2023年7月21日
nginx 代理服务
摘要: location中的try_files location /images/ { root /opt/html/; try_files $uri $uri/ /images/default.gif; } 比如 请求 127.0.0.1/images/test.gif 会依次查找 文件/opt/html
阅读全文
posted @ 2023-07-21 16:22 bhxuwei
阅读(58)
评论(0)
推荐(0)
2023年7月6日
vue 3教程
摘要: ## 创建项目 create-vue创建vue3项目 推荐,这个库也是官方进行维护的,所以使用起来无烦恼,yyds。 执行方式也是比较简单的,我们可以基于vite创建vue3或者vue2的项目 ``` npm init vue@3 npm init vue@2 ``` 依次填写和选择下列选项 ```
阅读全文
posted @ 2023-07-06 17:13 bhxuwei
阅读(52)
评论(0)
推荐(0)
2023年6月1日
docker 在线迁移文件存储位置
摘要: 本教程只适用 Docker 版本 >= v17.05.0 命令 df -Th 可以看到当前docker存储的路径 停止 docker 服务 sudo systemctl stop docker.socket sudo systemctl stop docker.service 迁移docker文件
阅读全文
posted @ 2023-06-01 09:46 bhxuwei
阅读(76)
评论(0)
推荐(0)
下一页
公告