2020年1月8日

tcpdump dns流量监控

摘要: 参考: dns流量监控 https://www.cnblogs.com/bonelee/p/7966914.html 阅读全文

posted @ 2020-01-08 21:41 锋锋2019 阅读(213) 评论(0) 推荐(0) 编辑

lsof查进程连接等

摘要: 参考: https://www.cnblogs.com/bonelee/p/7735479.html https://www.cnblogs.com/EasonJim/p/8098532.html #查看打开文件数 lsof |wc -l #查看某个进程打开的文件数 lsof -p 19764|wc 阅读全文

posted @ 2020-01-08 21:38 锋锋2019 阅读(1584) 评论(0) 推荐(1) 编辑

模拟登陆

摘要: 模拟登录#!/bin/bashtname="admin"tpasswd="123"name=''passwd=''function login(){echo "请输入用户名:"read nameecho "请输入密码:"read passwd}function check(){ if [ ${tna 阅读全文

posted @ 2020-01-08 21:37 锋锋2019 阅读(65) 评论(0) 推荐(0) 编辑

nginx日志

摘要: 统计nginx access.log文件中对ip地址去重并统计重复数access.log awk '{h[$1]++}END{for(i in h) print i,h[i]}' /var/log/nginx/access.log |sort -nrk2 |head | column -t 阅读全文

posted @ 2020-01-08 21:29 锋锋2019 阅读(83) 评论(0) 推荐(0) 编辑

ulimit配置

摘要: 参考ucloud主机配置: #(可选)临时生效 ulimit -c unlimitedulimit -n 1000000 #打开文件数ulimit -s 10240 #stack size的大小,默认是10Mulimit -u 10000 #不用调,用户的最大进程数,云主机上已调. 永久生效: vi 阅读全文

posted @ 2020-01-08 20:53 锋锋2019 阅读(903) 评论(0) 推荐(0) 编辑

dig用法

摘要: 参考: https://www.cnblogs.com/bonelee/p/7612554.html 一般来说linux下查询域名解析有两种选择,nslookup或者dig,而在使用上我觉得dig更加方便顺手。如果是在debian下的话,只要装上dnsutils这个包就可以使用dig命令了。最基本的 阅读全文

posted @ 2020-01-08 20:24 锋锋2019 阅读(334) 评论(0) 推荐(0) 编辑

导航