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

相关推荐
码流怪侠2 小时前
【GitHub】Bend:让 GPU 并行编程像写 Python 一样简单
python·github
炸膛坦客2 小时前
Git 和 GitHub:(九)修改本地仓库内容并推送到远程仓库(关联/克隆)
git·github
lazy H4 小时前
Git clone 怎么用?克隆项目及常见问题完整教程
大数据·git·后端·学习·搜索引擎·github
m0_743697597 小时前
关于ftp与SELinux的冲突问题
git·github
凌奕8 小时前
我读了六个 Coding Agent 的上下文压缩源码,发现网上流传的数据一半是错的
github·agent·claude
一次旅行12 小时前
act本地预跑GitHub Actions:Python项目完整CI/CD流水线实战
python·ci/cd·github
敢敢是只喵i12 小时前
Agent 为什么需要 guidance,但不能把 guidance 当成安全策略?
github·aigc
不简说13 小时前
JS 代码技巧 vol.9 — 20 个设计模式在真实项目里的应用
前端·javascript·github
逛逛GitHub14 小时前
很多神级开源 Agent 从它演化而来:77K Star 的 Pi 太强了。
github
今夕资源网15 小时前
SayIt语音输入+AI 润色 Typeless 替代品 GitHub开源语音输入法,可本地部署LLM亦可接入deepseek 或者其他大模型。
人工智能·开源·github·输入法·开源输入法·语音输入法