Linux 学习191130
curl 命令
wget -r -p -np -k -nc -c http://tomcat.apache.org/tomcat-9.0-doc
wget -r -p -np -k http://xxx.com/xxx
实时刷新命令
watch -d -n 1 cat ***.log
tail -f access.log
nginx代理后向服务器发送访问者真实IP
-
nginx配置server
proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
-
服务器用代码去除这个值或者使用nginx插件
tcpdump抓包使用
tcpdump -A -i eth0 -w dump-file1 host 10.117.0.201