上一页 1 ··· 40 41 42 43 44
摘要: import rlcompleter,readline readline.parse_and_bind('tab:complete') 阅读全文
posted @ 2017-11-03 15:56 西门运维 阅读(386) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/python import socket import re import sys def check_server(address,port): s = socket.socket() print "Attempting to connect to %s on port %s" % (address,port) try: s.connect((address,port))... 阅读全文
posted @ 2017-11-03 15:55 西门运维 阅读(2263) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/python import re import subprocess ARP = "arp" IP = "192.168.128.27" CMD = "%s %s" % (ARP,IP) macPattern = re.compile(":") def getMac(): p = subprocess.Popen(CMD,shell=True,stdout=subproce... 阅读全文
posted @ 2017-11-03 15:54 西门运维 阅读(1298) 评论(0) 推荐(0) 编辑
摘要: 1、pip下载安装 wget "https://pypi.python.org/packages/source/p/pip/pip-1.5.4.tar.gz#md5=834b2904f92d46aaa333267fb1c922bb" --no-check-certificate tar -xzvf 阅读全文
posted @ 2017-11-03 15:52 西门运维 阅读(553) 评论(0) 推荐(0) 编辑
摘要: 1、top 2、htop(yum install -y htop) 3、glances(yum install -y glances) 4、dstat -l -c -m -d -r -n --top-io --top-mem --top-cpu 5、iftop(yum install -y ifto 阅读全文
posted @ 2017-11-03 15:46 西门运维 阅读(234) 评论(0) 推荐(0) 编辑
摘要: 使用说明 运行以下命令生成缓存 除了网易之外,国内还有其他不错的yum源: 阿里源:http://mirrors.aliyun.com/repo/ 中科大的yum源,安装方法查看:https://lug.ustc.edu.cn/wiki/mirrors/help/centos sohu的yum源安装 阅读全文
posted @ 2017-11-03 15:31 西门运维 阅读(376) 评论(0) 推荐(0) 编辑
上一页 1 ··· 40 41 42 43 44