1.One is always on a strange road, watching strange scenery and listening to strange music. Then one day, you will find that the things you try hard t...
分类:
其他好文 时间:
2015-04-10 13:02:27
阅读次数:
123
Last login: Wed Apr 1 23:44:36 on ttys000
localhost:~ apple$ sudo tcpdump -i en0 host 192.168.0.1
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on en0, link-...
分类:
其他好文 时间:
2015-04-02 01:30:31
阅读次数:
380
$.backlog:可以把它简单理解为一个 listening socket 的请求连接队列的限制。当队列中的连接请求达到队列限制时,kernel 会拒绝信的连接请求。只有当应用程序通过 accept 方法从队列中取出连接请求,使队列腾出空位时,队列才能继续加入新的连接请求。对于客户端进程,如果其发...
分类:
编程语言 时间:
2015-03-29 19:28:20
阅读次数:
154
学习《TCP/IP网络编程》 韩 尹圣雨 著 金国哲 译套接字类似电话一、服务器端套接字(listening套接字)---接电话套接字①调用socket函数---安装电话机 #include int socket(int domain, int type, int protocol);//成功时返回...
分类:
其他好文 时间:
2015-03-18 20:13:15
阅读次数:
528
1. 查看端口占用2. 关闭进程3. 端口状态1. 查看端口占用在windows命令行窗口下执行:netstat -aon|findstr "8080" TCP 127.0.0.1:80 0.0.0.0:0 LISTENING 2448...
分类:
系统相关 时间:
2015-03-18 11:59:34
阅读次数:
226
在运行一个Server的时候,报错端口80被占用,于是各种找办法解决。最后把一些解决的方案列出来吧,给遇到相同的问题的人做一些参考。第一步,找到哪个程序占用端口运行->CMD打开DOS窗口netstat -ano | findstr 80然后,找到这一行
TCP 0.0.0.0:80 0.0.0.0 LISTENING 4744
最后的4744就是占用这个端口的PID,然后找到这个PID的...
用netstat -an命令查看!再stat下面有一些英文,简单说一下这些英文具体都代表什么:LISTEN:(Listening for a connection.)侦听来自远方的TCP端口的连接请求SYN-SENT:(Active; sent SYN. Waiting for a matching...
分类:
Web程序 时间:
2015-03-06 16:48:08
阅读次数:
183
>netstat -ano | findstr 8009TCP 127.0.0.1:8005 0.0.0.0:0 LISTENING 2188E:\eclipse_workspace\normandy>taskkill /PID 2188错误: 无法终止 PID 为 21...
from time import ctime,sleepdef music(): for i in range(2): print ("I was listening to music. %s" %ctime()) sleep(1)def move(): fo...
分类:
编程语言 时间:
2015-02-28 18:00:13
阅读次数:
217
1. 输入下面的命令查询哪个占用了5037端口netstat -ano | findstr "5037"出现下面信息TCP 127.0.0.1:5037 0.0.0.0:0 LISTENING 16162. 打开任务管理器kill掉1616...
分类:
系统相关 时间:
2015-02-14 14:54:44
阅读次数:
186