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

相关推荐
怒码ing10 小时前
美化个人github主页,部署github-readme-stats
github
GardenTu12 小时前
初尝git自结命令大全与需要理解的地方记录
git·github
电棍23321 小时前
GITHUB的若干操作
github
AI云极1 天前
PyCharm 集成 DeepSeek:本地运行 or API 直连?打造你的 AI 编程神器!
github
WebCandy1 天前
用Trae编辑器写一个Trae的AI对话记录导出脚本
人工智能·编辑器·github·copilot·ai编程
dawnkylin1 天前
通过 fork 为项目做出贡献
git·github
high20111 天前
【Github每日推荐】-- 2024 年项目汇总
github·每日推荐·2024年汇总
Web极客码2 天前
WordPress“更新失败,响应不是有效的JSON响应”问题的修复
json·github·wordpress
是懒羊羊吖~2 天前
图床 PicGo+GitHub+Typora的下载安装与使用
经验分享·笔记·github·typora·picgo