上一页 1 2 3 4 5 6 7 ··· 9 下一页

2022年8月11日

摘要: sudo ufw enable sudo ufw status sudo ufw deny from 11.6.5.18 to any 阅读全文
posted @ 2022-08-11 10:49 DuoRuaiMi4567 阅读(161) 评论(0) 推荐(0) 编辑

2022年7月28日

摘要: https://files.cnblogs.com/files/blogs/744713/pass.zip?t=1658998048 阅读全文
posted @ 2022-07-28 16:48 DuoRuaiMi4567 阅读(31) 评论(0) 推荐(0) 编辑

2022年7月21日

摘要: function getTiming() { start=$1 end=$2 start_s=$(echo $start | cut -d '.' -f 1) start_ns=$(echo $start | cut -d '.' -f 2) end_s=$(echo $end | cut -d ' 阅读全文
posted @ 2022-07-21 17:54 DuoRuaiMi4567 阅读(92) 评论(0) 推荐(0) 编辑
摘要: 故意让系统崩溃 echo "c" > /proc/sysrq-trigger 办法就是:重启 输入这个命令之后终端连接就会断开,无法输入命令,所以只能在后台重启 去掉系统卡住一段时间后引起panic异常死机: echo 0 > /proc/sys/kernel/hung_task_panic 系统p 阅读全文
posted @ 2022-07-21 17:02 DuoRuaiMi4567 阅读(333) 评论(0) 推荐(0) 编辑

2022年7月20日

摘要: #!/bin/bashwhile [ 1 ]do sleep 30 avail=`df / -h | awk '{print $4}' | awk '{sum+=$1}END{print sum}'` echo "disk avail:"$avail"G" if [ $avail -lt 5 ] t 阅读全文
posted @ 2022-07-20 13:53 DuoRuaiMi4567 阅读(24) 评论(0) 推荐(0) 编辑
摘要: //iconv_linux下字符集编码转换轻松实现 (1) iconv_t iconv_open(const char *tocode, const char *fromcode); //此函数说明将要进行哪两种编码的转换,tocode是目标编码,fromcode是原编码,该函数返回一个转换句柄,供 阅读全文
posted @ 2022-07-20 12:54 DuoRuaiMi4567 阅读(559) 评论(0) 推荐(0) 编辑

2022年7月19日

摘要: #include <stdio.h> #include <string.h> #include <fcntl.h> #include <unistd.h> #include <time.h> #include <stdlib.h> #include <pthread.h> /* int new_si 阅读全文
posted @ 2022-07-19 17:50 DuoRuaiMi4567 阅读(52) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> #include <string.h> #include <fcntl.h> #include <unistd.h> #include <time.h> #include <stdlib.h> #include <pthread.h> #include <err 阅读全文
posted @ 2022-07-19 17:46 DuoRuaiMi4567 阅读(67) 评论(0) 推荐(0) 编辑
摘要: set follow-fork-mode [parent|child] 阅读全文
posted @ 2022-07-19 17:42 DuoRuaiMi4567 阅读(16) 评论(0) 推荐(0) 编辑
摘要: 如果可以安装valgrind,建议使用valgrind 多线程情况下,可根据不同线程申请内存的地址分布规律去查找内存泄漏,此方法比较麻烦。 1.执行下面命令检测内存变化存在变动的内存起始地址while true; do pmap -x $(pidof your_bin) > test1; echo 阅读全文
posted @ 2022-07-19 17:41 DuoRuaiMi4567 阅读(633) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 9 下一页