netstat

Python SkypeWebClient-Bot with Selenium (Error 10048)

不羁岁月 提交于 2019-12-06 18:59:26
I am building a bot for the skype web client ( https://web.skype.com/en ) using Selenium. Everything works like a charm but after a few moments I am getting the error 10048: Address already in use. Only one usage of each socket address (protocol/IP address/port) is normally permitted I checked netstat -n and saw that my programm creates a huge amount of connections. from selenium import webdriver from selenium.webdriver.common.keys import Keys import time #driver = webdriver.Chrome(executable_path='c:\Python34\chromedriver.exe') driver = webdriver.Firefox(executable_path='c:\Program Files

window系统doc命令

霸气de小男生 提交于 2019-12-06 16:36:29
1.查看端口被占用命令 netstat -ano | findstr 端口号 C:\Users\admin>netstat -ano|findstr 80 TCP 0.0.0.0:80 0.0.0.0:0 LISTENING 4 TCP 0.0.0.0:27009 0.0.0.0:0 LISTENING 5680 2.查看端口的进程命令 netstat -ano | findstr " pid " C:\Users\admin>netstat -ano|findstr "5680" TCP 0.0.0.0:27009 0.0.0.0:0 LISTENING 5680 TCP 127.0.0.1:27009 127.0.0.1:49528 ESTABLISHED 5680 TCP [::]:27009 [::]:0 LISTENING 5680 3.修改window系统占用80端口的方法,允许regedit命令启动注册表,找到\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\HTTP,修改start的属性值为0,然后重新启动系统。    来源: https://www.cnblogs.com/qianshouxiuluo/p/11994687.html

ES not listening to external requests

三世轮回 提交于 2019-12-06 16:05:14
I have an e2 ubuntu instance running elasticsearch, and although it works fine locally, I can't connect from a windows pc using curl http://ipaddress:9200/ (error is "unable to connect to the remote server"). I've set up Apache on the same ubuntu instance and curl http://ipaddress:80/ works from the same windows machine, & I can ping the instance with no trouble. My amazon security group allows tcp access to all ports from all IP addresses. I think it's an ES config issue, although the only lines I've added to elasticsearch.yml are: http.cors.enabled: true http.cors.allow-origin: "*" I've

yum安装软件时,提示No package netstat available.的解决方法

╄→尐↘猪︶ㄣ 提交于 2019-12-06 15:30:09
1. 序言 如笔者在本机上运行netstat时,提示没有这个命令,向来简单粗暴,直接yum -y install netstat,显然是不能正常安装的。 [root@hadoop-103 ~]# yum -y install netstat Loaded plugins: fastestmirror Determining fastest mirrors * base: mirrors.aliyun.com * extras: mirrors.aliyun.com * updates: mirrors.aliyun.com base | 3.6 kB 00:00:00 extras | 2.9 kB 00:00:00 updates | 2.9 kB 00:00:00 (1/2): extras/7/x86_64/primary_db | 153 kB 00:00:00 (2/2): updates/7/x86_64/primary_db | 5.1 MB 00:00:02 No package netstat available. Error: Nothing to do [root@hadoop-103 ~]# 这种情况下,怎么办呢? 2. 使用“yum search”命令 此时可以使用“yum search”来查询这个命令在哪个包中: [root@hadoop-103 ~]$

linux第三天

浪子不回头ぞ 提交于 2019-12-06 05:43:32
一、用户的类型 1.root管理员:所有权限(r w x) 2.文件拥有者(u):谁创建谁拥有 3.组 (g):用户组 4.其它用户(o):不属于用户组,也不是文件的创建者,不是管理员 5.所有用户(a): u, g , o r--读, w--写, x--执行 r w x 0 0 1==>1 0 1 0==>2 1 0 0==>4 111==>7 chmod 777 文件名(777是8进制的数)(注意赋予权限7是1+2+4,读写执行权限都有) 二、修改文件权限(读,写,执行)(x权限对目录文件很重要,文件夹不能无x权限,普通文件要有读写权限) chmod 777 文件名 chmod 0777 文件名 chmod u+wrx, g-wr, o=wrx 文件名 u=wxr u-r u+r 三、默认权限 1、查看缺省默认权限 umask –S 2、修改默认权限 umask 022 (例如umask 000表示修改默认权限为xrd,用777-000得到所有权限,usmask -S 564 权限范围为213,用777-564得到权限内容)(设置的是目录文件权限,在目录文件新建普通文件的话普通文件没有x权限) 1)、普通文件: 002 6 6 6 6 6 4 2)、目录文件: 002 7 7 7 775 umask 001 四、文件重定向:重定向是对标准文件(文件重定向也可以实现复制操作) 1

netstat - 系统信息

北慕城南 提交于 2019-12-06 04:53:40
netstat - 系统信息 注意:如果是勘验或者验证漏洞,需要验证netstat程序的完整性(netstat程序是否被修改过)。 # 老版本的CentOS中会自带这个软件包,新版的7有的时候需要单独安装。 yum install -y net-tools 参数 说明 -a --all Show both listening and non-listening (for TCP this means established connections) sockets. With the --interfaces option, show interfaces that are not up -t --tcp tcp connection -u --udp udp connection -l --listening Show only listening sockets. (These are omitted by default.) -p --program 程序的信息(PID/Program name) 通过PID进而就可以知道源程序在哪里 -n --numeric # 数值(0.0.0.0:22) Show numerical addresses instead of trying to determine symbolic host, port or user names.

Check if TCP port is available (not listening or connected)

孤街浪徒 提交于 2019-12-06 02:55:53
I use following code to check if a port is available or not: bool ClassA::CheckPortTCP(short int dwPort , char *ipAddressStr) { struct sockaddr_in client; int sock; client.sin_family = AF_INET; client.sin_port = htons(dwPort); client.sin_addr.S_un.S_addr = inet_addr(ipAddressStr); sock = (int) socket(AF_INET, SOCK_STREAM, 0); int result = connect(sock, (struct sockaddr *) &client,sizeof(client)); // change to result == 0 -> failure in writing code too quick ;-) if (result = 0) return true; // port is active and used else return false; } The problem is if the port is opened but not connected

Linux netstat命令详解

这一生的挚爱 提交于 2019-12-06 00:14:42
netstat命令用于显示与IP、TCP、UDP和ICMP协议相关的统计数据,一般用于检验本机各端口的网络连接情况。netstat是在内核中访问网络及相关信息的程序,它能提供TCP连接,TCP和UDP监听,进程内存管理的相关报告。 netstat常用命令参数 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 usage: netstat [-veenNcCF] [<Af>] -r netstat {-V|--version|-h|--help} netstat [-vnNcaeol] [<Socket> ...] netstat { [-veenNac] -I[<Iface>] | [-veenNac] -i | [-cnNe] -M | -s } [delay] -r, --route display routing table -I, --interfaces=<Iface> display interface table for <Iface> -i, --interfaces display interface table -g, -- groups display multicast group memberships -s, --statistics display

Used port not showing up in netstat -a result

自古美人都是妖i 提交于 2019-12-05 23:53:27
问题 This issues started recently when I am trying to start active-mq (which by default starts on port 61616). But suddenly it stopped coming up with JVM_BIND issue on that port. The problem did not go away even after restarting the computer. Main problem is that netstat -a command on Windows 7, does not show that 61616 is consumed. But when I wrote a simple Java program to bind a socket to that port, I wasn't certainly able to! I eventually started active-mq by moving to a different port. But,

netstat和ifconfig命令

六月ゝ 毕业季﹏ 提交于 2019-12-05 22:30:48
Netstat: Netstat是控制台命令,是一个监控TCP/IP网络的非常有用的工具,它可以显示路由表、实际的网络连接以及每一个网络接口设备的状态信息。Netstat用于显示与IP、TCP、UDP和ICMP协议相关的统计数据,一般用于检验本机各端口的网络连接情况。 Recv-Q:接收队列 Send-Q:发送队列 Proto:连接使用的协议 RefCnt:连接到套接口的进程号 Types:套接口类型 State: 套接口当前状态 Path:连接到套接口的其他进程使用的路径名 TCP中网络状态(State列): netstat常见参数: -a (all) 显示所有选项,默认不显示LISTEN相关。 -t (tcp) 仅显示tcp相关选项。 -u (udp) 仅显示udp相关选项。 -n 拒绝显示别名,能显示数字的全部转化成数字。 -l 仅列出有在 Listen (监听) 的服务状态。 -p 显示建立相关链接的程序名 -r 显示路由信息,路由表 -e 显示扩展信息,例如uid等 -s 按各个协议进行统计 -c 每隔一个固定时间,执行该netstat命令。 常用netstat相关命令: 1、列出所有端口 #netstat -a 2、列出所有 tcp 端口 #netstat -at 3、列出所有 udp 端口 #netstat -au 4、只显示监听端口 #netstat -l 5