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

相关推荐
算家云10 小时前
基于GitHub Actions与算力平台API:构建端到端的模型自动训练与部署流水线
github·模型部署·算家云·租算力,到算家云·算力平台
无限进步_10 小时前
C语言动态内存的二维抽象:用malloc实现灵活的多维数组
c语言·开发语言·数据结构·git·算法·github·visual studio
NocoBase12 小时前
8 个最佳 Google Sheets 替代方案(附成本与能力分析)
低代码·开源·github
逛逛GitHub16 小时前
5 个很火火的个人 AI 知识库 GitHub 项目,收藏一波。
github
HelloGitHub19 小时前
《HelloGitHub》第 116 期
开源·github
YongCheng_Liang20 小时前
深度解析:GitHub API 爬虫工具 —— 自动化获取热门 / 推荐开源项目
爬虫·自动化·github
间彧1 天前
Kubernetes声明式API相比传统命令式API在故障恢复场景下的具体优势有哪些?
kubernetes·github
5***o5001 天前
Git在代码中的GitHub
git·github
MarvinZhang1 天前
LeanSpec:一个轻量级的 SDD 框架
架构·开源·github
徐小夕2 天前
耗时一周,我把可视化+零代码+AI融入到了CRM系统,使用体验超酷!
javascript·vue.js·github