用python编写socket程序,在指定端口上监听服务:importsocketsock=socket.socket(socket.AF_INET,socket.SOCK_STREAM)port=8080sock.bind((‘‘,port))sock.listen(1)print‘listeningonport:%s‘%portwhileTrue:try:conn,addr=sock.accept()print‘connectedby%s:%s‘%(addr[0],add..
分类:
其他好文 时间:
2015-01-16 17:04:29
阅读次数:
173
【问题现象】pdns_server启动失败 【问题日志】 Jan 6 09:40:16 localhost pdns[24942]: This is a standalone pdns Jan 6 09:40:16 localhost pdns[24942]: Listening on controlsocket in ‘/var/vcap/sys/run/p...
分类:
其他好文 时间:
2015-01-06 12:15:02
阅读次数:
250
Windows下查看进程及结束进程命令 1)查看占用8080端口的进程号 >netstat –aon | findstr?“8080” 结果:TCP????0.0.0.0:8080???????????0.0.0.0:0??????????????LISTENING???...
查看使用 5556 端口的进程C:\Windows\System32>netstat -ano | findstr "5556" TCP 0.0.0.0:5556 0.0.0.0:0 LISTENING 7316 TCP [:...
分类:
系统相关 时间:
2014-12-13 12:13:03
阅读次数:
167
PortFast:加快主机连接入stp网络的收敛速度.一个端口如果设置为Portfast,该端口不参与生成树计算。主要用在在交换机与主机相连的端口,不应该在交换机与交换机,路由器,hub互连的网络设备的端口使用。在STP中,port有5个状态:disable、blocking、listening、learning、forward..
分类:
其他好文 时间:
2014-12-11 19:28:39
阅读次数:
167
查看指定端口的占用情况C:\>netstat -aon|findstr "9050" 协议 本地地址 外部地址 状态 PID TCP 127.0.0.1:9050 0.0.0.0:0 LISTENING 2016P: 看到了吗,端口被进程号为2016的进程占用,继续执行下面命令: (也可以去任务管理...
分类:
其他好文 时间:
2014-12-10 19:23:11
阅读次数:
99
We can see this comment in nginx.conf.# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000Means: When the nginx handle PHP, the server...
分类:
Web程序 时间:
2014-12-04 17:19:37
阅读次数:
215
80端口被占用了,看看是什么程序占用了。 C:\Users\zhaoliangang>netstat?-ano?|?findstr??"80"
??TCP????0.0.0.0:80?????????????0.0.0.0:0??????????????LISTENING???...
November 13, 2014 19:00~21:00 Feishang Cafe
The problem of this meeting was that I still could not understand what the foreign friend said. Still need more listening practice, e...
分类:
其他好文 时间:
2014-11-24 17:19:31
阅读次数:
136
Judge Ito is having a problem with people subpoenaed for jury duty giving rather lame excuses in order to avoid serving. In order to reduce the amount of time required listening to goofy excuses, Judg...
分类:
其他好文 时间:
2014-11-21 01:37:01
阅读次数:
185