作者:gnuhpc 出处:http://www.cnblogs.com/gnuhpc/ __author__ = 'gnuhpc' import telnetlib,socket IP={} def parseTel(line): parseArray = line.split() IP[parseArray[0]]=parseArray[1] with open("tel.lst") as f: for line in f: parseTel(line) for (ip,port)
18 commands to monitor network bandwidth on Linux server – BinaryTides https://www.binarytides.com/linux-commands-monitor-network/ yum install iptraf iptraf iptraf-ng 网卡 ip 端口 监控 netstat linux win [root@hadoop2 ~]# netstat Active Internet connect
在linux上telnet远程mysql端口失败,经过上网查找后,找到多种方法. (1)我在本地的Navicat上新增了一个用户,主机名是linux的ip,也可以是 %(百分号代表这个用户可以在任何地方对mysql进行远程连接): (2)登录mysql; 执行 use mysql 执行 select user,host from mysql.user; 使用update语句将root用户的host改为%,如果想只让某个ip访问,可以将host改