向nginx发送请求

服务端: 

Process 23432 attached - interrupt to quit
gettimeofday({1405525345, 729161}, NULL) = 0
epoll_wait(8, {{EPOLLIN, {u32=150049720, u64=13221331005772764088}}}, 512, -1) = 1
gettimeofday({1405525613, 235537}, NULL) = 0
accept4(6, {sa_family=AF_INET, sin_port=htons(58465), sin_addr=inet_addr("127.0.0.1")}, [16], SOCK_NONBLOCK) = 3
epoll_ctl(8, EPOLL_CTL_ADD, 3, {EPOLLIN|EPOLLET, {u32=150049912, u64=13828384397808735352}}) = 0
epoll_wait(8, {{EPOLLIN, {u32=150049912, u64=13828384397808735352}}}, 512, 60000) = 1
gettimeofday({1405525613, 242725}, NULL) = 0
recv(3, "GET / HTTP/1.0\r\nUser-Agent: Wget"..., 1024, 0) = 107
stat64("/usr/local/nginx/html/index.html", {st_mode=S_IFREG|0644, st_size=151, ...}) = 0
open("/usr/local/nginx/html/index.html", O_RDONLY|O_NONBLOCK|O_LARGEFILE) = 9
fstat64(9, {st_mode=S_IFREG|0644, st_size=151, ...}) = 0
writev(3, [{"HTTP/1.1 200 OK\r\nServer: nginx/1"..., 215}], 1) = 215
sendfile64(3, 9, [0], 151)              = 151
write(4, "127.0.0.1 - - [16/Jul/2014:08:46"..., 96) = 96
close(9)                                = 0
setsockopt(3, SOL_TCP, TCP_NODELAY, [1], 4) = 0
recv(3, "", 1024, 0)                    = 0
close(3)                                = 0
epoll_wait(8, 
</pre><p></p><p></p><p></p><p>客户端:</p><pre name="code" class="html">

[root@localhost wg]# wget http://localhost/
--2014-07-16 08:46:53--  http://localhost/
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... failed: Connection refused.
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 151 [text/html]
Saving to: “index.html.1”


100%[======================================>] 151         --.-K/s   in 0.03s   


2014-07-16 08:46:53 (4.82 KB/s) - “index.html.1” saved [151/151]


分析:





 



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

会飞的幸运儿

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值