05 2024 档案

摘要:数学公式 MarkDown数学公式语法整理 https://blog.csdn.net/guoxulieying/article/details/131107653 https://freeopen.github.io/mathjax/#10-ru-he-shu-ru-lei-jia-lei-che 阅读全文
posted @ 2024-05-30 09:31 LiYanbin 编辑
摘要:https://courses.fmsoft.cn/aple 目录一、内存管理虚拟内存原理C/C++程序的堆/栈管理APIC/C++进程的内存布局常用工具其他分配内存的方法常⻅内存使用问题二、文件和文件系统STDIO vs 传统文件读写系统调用问题:STDIO接口的主要功能有哪些?问题:读写文件时应 阅读全文
posted @ 2024-05-25 19:20 LiYanbin 阅读(10) 评论(0) 推荐(0) 编辑
摘要:给普通人的26条提示工程策略:#ai##提示工程# 1、与LLM交流不需要礼貌,所以无需添加“请”、“如果你不介意”、“谢谢”、“我想”等短语,直接切入主题。 2、在提示中整合预期的受众,例如,受众是该领域的专家。 3、将复杂任务分解为一系列更简单的提示,进行互动对话。 4、使用肯定指令,例如“做. 阅读全文
posted @ 2024-05-25 08:59 LiYanbin 阅读(20) 评论(0) 推荐(0) 编辑
摘要:https://github.com/ohmybash/oh-my-bash install curl -fsSL https://raw.githubusercontent.com/ohmybash/oh-my-bash/master/tools/install.sh > omybash-inst 阅读全文
posted @ 2024-05-20 16:11 LiYanbin 阅读(37) 评论(0) 推荐(0) 编辑
摘要:前提:多台压测服务器时间同步 xdate="$(date +%F) 16:05:00";sleep $(( $(date -d "$xdate" +%s) - $(date +%s) )) && echo "666" 如果希望测试命令执行一段时间之后自动结束,再命令前加timeout: xdate= 阅读全文
posted @ 2024-05-17 23:32 LiYanbin 编辑
摘要:目录TCP 连接限制配置(压测客户端和服务器)问题1:压测3w个请求(长连接),caps 1000,有一半的请求超时优化 配置网卡中断分配到多个cpuwireshark 查看rtt查看系统每秒收到的TCP请求数附:服务器网络参数配置 linux内核优化(百万级别长连接,并发测试指南) 百看不如一练, 阅读全文
posted @ 2024-05-17 09:57 LiYanbin 阅读(191) 评论(0) 推荐(0) 编辑
摘要:对于数据读取和发送的,水平触发和边缘触发的区别: 参考:彻底搞懂epoll的LT模式和ET模式 关于数据的读比较好理解,无论是LT模式还是ET模式,监听到读事件从socket开始读数据就好了,只不过读的逻辑有些差异,LT模式下,读事件触发后,可以按需收取想要的字节数,不用把本次接收到的数据收取干净, 阅读全文
posted @ 2024-05-14 10:38 LiYanbin 阅读(102) 评论(0) 推荐(0) 编辑
摘要:系统配置: 多网口情况下,假设各个网口ip在同一网段;此时,由于默认路由规则,从不同网口的ip访问,服务器依旧会返回默认网口的mac地址,配置方式如下: sysctl -w net.ipv4.ip_forward=1 # 开启ip转发规则 net.ipv4.conf.X.rp_filter = 0 阅读全文
posted @ 2024-05-13 21:32 LiYanbin 阅读(1637) 评论(0) 推荐(0) 编辑
摘要:停止docker服务 1、停止自定义的监控如果有,比如: systemctl stop check_docker_service.service 2、停止所有容器 docker stop $(docker ps -aq) 3、停止系统服务 systemctl stop docker.socket d 阅读全文
posted @ 2024-05-13 21:21 LiYanbin 阅读(3) 评论(0) 推荐(0) 编辑
摘要:aliyun os centos 9 docker-ce install sudo wget -O /etc/yum.repos.d/docker-ce.repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo sud 阅读全文
posted @ 2024-05-13 21:13 LiYanbin 阅读(46) 评论(0) 推荐(0) 编辑
摘要:目录mysql命令登录命令在命令行直接执行命令查看表数据/修改表数据/清空数据查看表结构/增加列/删除列/删除表wireshark 抓mysql的报文redis命令登录并执行命令/查看数据批量删除数据sqlite命令mysql binlog mysql命令 登录命令 mysql -uroot -p' 阅读全文
posted @ 2024-05-13 21:09 LiYanbin 阅读(7) 评论(0) 推荐(0) 编辑
摘要:客户端与服务器建立tcp连接后,在服务器上执行ss -im dst 目标IP地址来检查skmem rb值: tcp ESTAB 0 0 192.168.99.124:ssh 192.168.99.86:48270 skmem:(r0,rb369280,t0,tb87040,f0,w0,o0,bl0, 阅读全文
posted @ 2024-05-13 17:44 LiYanbin 阅读(190) 评论(0) 推荐(0) 编辑
摘要:一台主机上只能保持最多 65535 个 TCP 连接吗? - 文礼的回答 - 知乎 https://www.zhihu.com/question/361111920/answer/1199952447 Q: 两个确定的ip地址.一个端口只能对应一个端口.怎么能64k*64k连接.明显只有64k链接吧 阅读全文
posted @ 2024-05-13 10:59 LiYanbin 阅读(17) 评论(0) 推荐(0) 编辑
摘要:摘自:使用strace命令跟踪系统调用 strace -tt -T -v -f -e trace=file -o /data/log/strace.log -s 1024 -p 23489 -c 统计每一系统调用的所执行的时间,次数和出错的次数等. -d 输出strace关于标准错误的调试信息. - 阅读全文
posted @ 2024-05-12 20:04 LiYanbin 阅读(40) 评论(0) 推荐(0) 编辑
摘要:【1】查看包信息 how to get package info for same lib on centos $rpm -qf /usr/lib64/libmicrohttpd.so.10 libmicrohttpd-0.9.33-2.el7.x86_64 $rpm -qi libmicrohtt 阅读全文
posted @ 2024-05-12 20:02 LiYanbin 阅读(22) 评论(0) 推荐(0) 编辑
摘要:应用打开的文件描述符: lsof -p pid 应用消息队列状态: ipcs -qp | awk '/3193/{print "ipcs -qp -i "$1}' | bash 阅读全文
posted @ 2024-05-12 19:58 LiYanbin 阅读(4) 评论(0) 推荐(0) 编辑
摘要:sed 打印某两行之间的文件 sed -n '128754,128929p' xx-log-file sed 正则匹配提取文本 $ cat 1.txt port=888 $ sed -n 's/port=\(.*\)/\1/p' 1.txt # '\1'表示括号的匹配项 888 sed 替换 sed 阅读全文
posted @ 2024-05-12 19:44 LiYanbin 阅读(2) 评论(0) 推荐(0) 编辑
摘要:guide: https://ffmpeg.org/ffmpeg-protocols.html play_audio.sh #!/bin/bash action="${1}" sipnum="${2}" lo_m_host="${3}" lo_m_port="${4}" play_file="${5 阅读全文
posted @ 2024-05-12 18:35 LiYanbin 阅读(10) 评论(0) 推荐(0) 编辑
摘要:目录基础镜像构建(包含sipp ffmpeg)容器运行文件docker-compose.yml创建运行容器 基础镜像构建(包含sipp ffmpeg) 使用3.16版本,ffmpeg rpt 打流支持设置本地ip地址 localaddr # Base images 基础镜像 FROM alpine: 阅读全文
posted @ 2024-05-12 18:24 LiYanbin 阅读(4) 评论(0) 推荐(0) 编辑
摘要:windterm https://github.com/teaper/windterm-nord-theme https://windowsterminalthemes.dev/ 阅读全文
posted @ 2024-05-12 13:55 LiYanbin 编辑
摘要:转载-https://m.weibo.cn/status/5031218725257887 这个讲解 ChatGPT 提示词技巧的视频值得一看,播主将常见的提示词技巧分成了10个级别,最后一级的 CO-STAR 框架,来源自新加坡政府科技局(GovTech)组织的首届 GPT-4 提示工程大赛冠军总 阅读全文
posted @ 2024-05-07 22:46 LiYanbin 阅读(115) 评论(0) 推荐(0) 编辑
摘要:valgrind进行内存越界检查 valgrind --log-file='valgrind_report.log' --time-stamp=yes –track-origins=yes --tool=memcheck --leak-check=full --show-leak-kinds=all 阅读全文
posted @ 2024-05-07 21:49 LiYanbin 编辑

点击右上角即可分享
微信分享提示