Debug日程工作经验总结日程常用

数据库

db连接命令

kubectl exec -it -n de dbs-53-cdf57d8dd-l4l29 sh

su - postgres

psql

psql -h 10.115.19.118 -p 12080 -U postgres -d clouddb

SET search_path TO "h.com";

select * from ems_ice limit 1;

也可以不切换schema,直接sql查询

select * from "e.com".eeelimit 1;

db数据表查询

\l 列举数据库

\dt 查看下属的表格

\c 查看连接信息

\c 数据库名 切换数据库

\d "eee.com".aaa 查看表结构

ETCD

etcd全局搜索

etcdctl --endpoints=10.1612.310.165:12257 get --prefix / |grep ems

etcd定点搜索

etcdctl --endpoints=10.1261.30.1265:12257 get /dbs/script/eems

etcd获取数据库值

etcdctl --endpoints=10.105.9.112:122257 get --prefix /dbs/script/ems

REDIS

redis命令

kubectl exec -it -n dem redis-2207-5545c48876-hgdrd sh

redis-cli -h 10.10.39.153 -p 12224 -a hjsddddaaaafo@!#1234...#@

keys *

使用harbor

docker tag faxfront:latest 192.1268.51.87/service/puc/pu22cgwfaxfront:V4.1.01.070.340

docker push 192.168.51.87/service/puc/puc222gwfaxfront:V4.1.01.070.340

yaml文件

cd /home/dp/packages/DEM-1423/DPConfig/olms/olmss_1461_V1.0.01.000

PPROF

启停pprof

http://192.168.59.63:11401/pprof

分析总览:点击 pprof和trace的可以导出profile文件

http://192.168.59.63:11401/debug/pprof/

安装好graphviz,执行

go tool pprof --http=:8080 profile

可以在浏览器看到pprof分析 路由是 http://localhost:8080/ui/

抓包

tcpdump -i any port '12049' -vv -w $(date +'%Y%m%d_%H%M%S').pcap

FTP文件操作

wget --ftp-user=test --ftp-password=test@102d20

相关推荐
fthux2 小时前
装闭 RenoPit 源码解析(06):SSE如何实时推送AI装修分析进度
人工智能·ai·开源·github·open source·renopit
是烨笙啊4 小时前
拯救 GitHub stars 体验:从 Agent Skill 到浏览器插件
github
小弥儿5 小时前
GitHub今日热榜 | 2026-08-11:图原生基础设施首日登顶
学习·开源·github
码流怪侠6 小时前
用 WiFi 信号数人头:howmanypeoplearearound 项目深度解析
后端·开源·github
大强同学8 小时前
零成本部署0penList,三步搞定,我一分钱没花!
github
IT摆渡者12 小时前
VM EXSI7.0存储硬盘故障处理
大数据·linux·github
Narrastory13 小时前
我用 Claude Code 写代码不到 2 小时,却花了 3 天做完这个软件—Vibe Coding 的正确姿势,是设计不是生成
前端·人工智能·github
AI Dog13 小时前
GitHub 项目整体替换与大文件处理指南
github
March.s13 小时前
Nginx 服务器反向代理实战指南
服务器·nginx·github
逛逛GitHub13 小时前
在 Codex 中用这 4 个 SKill,让你拍的照片变高级。
github