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

相关推荐
粥里有勺糖4 小时前
视野修炼-技术周刊第139期 | AI 不会让时间变多
前端·github·ai编程
一点一木5 小时前
🚀 2026 年 11 月 GitHub 十大热门项目排行榜 🔥
人工智能·github
OpenTiny社区7 小时前
当 AI 开始写 UI,我们缺的不是模型,是"设计词汇"
前端·github·ai编程
逛逛GitHub7 小时前
Codex 自带的远程功能用着不爽,直接换成这个远程控制神器了。
github
CoderJia程序员甲7 小时前
GitHub 热榜项目 - 周榜(2026-11-28)
github
LiuPig刘皮哥8 小时前
github桌宠desktop-pet star前22在干嘛?
github·桌宠·xiaokeai
七牛云行业应用8 小时前
Antigravity 迁移清单:Claude Code、Codex、Cursor 哪些能带过来
人工智能·ai·github
欧雷殿10 小时前
没有数据勿谈智能:揭秘我的数据底座
数据挖掘·github·ai编程
心如鉄补11 小时前
GitHub Actions 自动化:5 个真实运维提效案例
运维·自动化·github
徐小夕12 小时前
万字分享:CRDT 算法在 Word 文档中的工程化落地
前端·vue.js·github