Kim

Results 8 comments of Kim

#[jyunfan2015](https://github.com/jyunfan2015) 上海交通大学源以及阿里云已经有almalinux了,目前我这边测试下来最快的就是中科大,阿里云有点慢

#[jyunfan2015](https://github.com/jyunfan2015) 这个脚本可以试试 ```shell sed -e 's|^mirrorlist=|#mirrorlist=|g' \ -e 's|^# baseurl=https://repo.almalinux.org/vault/|baseurl=https://mirror.sjtu.edu.cn/almalinux/|g' \ -e 's|^# baseurl=https://repo.almalinux.org/almalinux/|baseurl=https://mirror.sjtu.edu.cn/almalinux/|g' \ -i.bak \ /etc/yum.repos.d/almalinux-ha.repo \ /etc/yum.repos.d/almalinux-plus.repo \ /etc/yum.repos.d/almalinux.repo \ /etc/yum.repos.d/almalinux-rt.repo \ /etc/yum.repos.d/almalinux-sap.repo \ /etc/yum.repos.d/almalinux-nfv.repo \ /etc/yum.repos.d/almalinux-powertools.repo...

不是很明白你的意思, requests不是标准库

准备依赖requests或者httplib做域名识别

``` Python try: import requests except Exception as e: print 'Please "pip install requests"' try: requests.get('https://1.179.253.22') except Exception, e: nameList = str(e).split("', '") nameList[0] = nameList[0].split("'")[-1] nameList[-1] = nameList[-1].split("'")[0] print...

我这边也有python ping 不依赖系统的 ``` Python import os import select import signal import socket import struct import sys import time if sys.platform.startswith('win32'): default_timer = time.clock else: default_timer = time.time ICMP_ECHOREPLY =...

是的,这个是我在公司做的自动化测试脚本 2014年6月11日 下午8:33于 "gshmu" [email protected]写道: > 请看ISSUE3 检查标准,很郁闷。 > ping居然要用管理员权限,不是我风格! 搁置。 > > — > Reply to this email directly or view it on GitHub > https://github.com/mhohai/m2conf/issues/2#issuecomment-45734751.