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

相关推荐
CoderJia程序员甲11 小时前
GitHub 热榜项目 - 日榜(2026-1-13)
人工智能·ai·大模型·github·ai教程
iuu_star15 小时前
项目开源-零基础掌握GitHub大文件上传(Git)
开源·github
wangruofeng15 小时前
OpenCode 上手初体验:从安装到基础使用
github·ai编程
Albert Edison16 小时前
【Git】多人协作二(不同分支下)
git·elasticsearch·svn·github
数据大魔方19 小时前
【期货量化实战】豆粕期货量化交易策略(Python完整代码)
开发语言·数据库·python·算法·github·程序员创富
逛逛GitHub21 小时前
这 2 个 Skills 开源项目,最近在 GitHub 上火了。
github
是毛毛吧1 天前
GitHub前沿----AI Agent 爆发前夜:深度解析 UI-TARS, MCP 与 Claude Code 如何重塑开发流
开源·github
这儿有一堆花1 天前
Hexo博客保姆级安装教程
github
Cosimac2 天前
用 npm 做免费图床,这操作绝了!
npm·github
WaterRun2 天前
一个由Rust实现的, 好得多的Windows tree命令: tree++项目简介
rust·github