本文共 5556 字,大约阅读时间需要 18 分钟。
网站相关技术探究keepalive设多少:
0:标准输入 1:标准输出 2:标准错误 |
total 0 lrwx------ 1 root root 64 Apr 4 17:49 0 -> /dev/null lrwx------ 1 root root 64 Apr 4 17:49 1 -> /dev/null lrwx------ 1 root root 64 Apr 4 18:30 18 -> socket:[475691] lrwx------ 1 root root 64 Apr 4 18:30 19 -> socket:[475692] l-wx------ 1 root root 64 Apr 4 17:49 2 -> /usr/local/nginx/logs/error.log lrwx------ 1 root root 64 Apr 4 18:30 20 -> socket:[475694] lrwx------ 1 root root 64 Apr 4 18:30 21 -> socket:[475695] lrwx------ 1 root root 64 Apr 4 18:30 22 -> socket:[475698] lrwx------ 1 root root 64 Apr 4 18:30 23 -> socket:[475699] lrwx------ 1 root root 64 Apr 4 18:30 24 -> socket:[475701] lrwx------ 1 root root 64 Apr 4 18:30 25 -> socket:[475702] lrwx------ 1 root root 64 Apr 4 17:49 3 -> socket:[475689] l-wx------ 1 root root 64 Apr 4 17:49 4 -> /usr/local/nginx/logs/access.log l-wx------ 1 root root 64 Apr 4 17:49 5 -> /usr/local/nginx/logs/error.log lrwx------ 1 root root 64 Apr 4 17:49 6 -> socket:[128687] lrwx------ 1 root root 64 Apr 4 19:33 7 -> socket:[475690] |
2013/04/04 18:06:32 [error] 12861#0: *31 open() "/www/favicon.ico" failed (2: No such file or directory), client: 1.202.193.244, server: www.a.com, request: "GET /favicon.ico HTTP/1.1", host: "*.****.com" |
1.202.193.244 - - [04/Apr/2013:18:13:37 +0800] "GET / HTTP/1.1" 200 19 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.2.0.0 Safari/537.17" 1.202.193.244 - - [04/Apr/2013:18:13:37 +0800] "GET /favicon.ico HTTP/1.1" 404 570 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.2.0.0 Safari/537.17" |
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN tcp 0 0 192.168.100.99:80 1.202.193.244:12988 ESTABLISHED tcp 0 0 192.168.100.99:80 1.202.193.244:12989 ESTABLISHED |
1.202.193.244 - - [04/Apr/2013:18:13:50 +0800] "-" 400 0 "-" "-" |
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN tcp 0 0 192.168.100.99:80 1.202.193.244:12988 ESTABLISHED |
keepalive_timeout 60; |
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN |
1.202.193.244 - - [04/Apr/2013:18:23:51 +0800] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.2.0.0 Safari/537.17" 1.202.193.244 - - [04/Apr/2013:18:23:51 +0800] "GET /favicon.ico HTTP/1.1" 404 570 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.2.0.0 Safari/537.17" 1.202.193.244 - - [04/Apr/2013: 18:24:10 +0800] "-" 400 0 "-" "-" 1.202.193.244 - - [04/Apr/2013: 18:25:01 +0800] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.2.0.0 Safari/537.17" 1.202.193.244 - - [04/Apr/2013:18:25:01 +0800] "GET /favicon.ico HTTP/1.1" 404 570 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.2.0.0 Safari/537.17" 1.202.193.244 - - [04/Apr/2013: 18:25:20 +0800] "-" 400 0 "-" "-" |
keepalive_timeout 20; |
Thu Apr 4 18:51:09 CST 2013 tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN tcp 0 0 192.168.100.99:80 1.202.193.244:14759 ESTABLISHED tcp 0 0 192.168.100.99:80 1.202.193.244:14760 ESTABLISHED |
Thu Apr 4 18:51:28 CST 2013 tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN tcp 0 0 192.168.100.99:80 1.202.193.244:14759 ESTABLISHED |
Thu Apr 4 18:51:29 CST 2013 tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN |
下面两张图,TCP状态,很多人不了解,第一张取自LVS配置说明里的,因为是打印后用笔写过所以不是原版的。,大家将就着看。