大陸 vps 測試

https://raw.githubusercontent.com/oooldking/script/master/superspeed.sh #!/usr/bin/env bash # Description: Test your server’s network with Speedtest to China # Copyright (C) 2017 - 2017 Oldking # URL: https://www.oldking.net/305.html # Colors RED=’\033[0;31m’ GREEN=’\033[0;32m’ YELLOW=’\033[0;33m’ SKYBLUE=’\033[0;36m’ PLAIN=’\033[0m' # check root [[ $EUID -ne 0 ]] && echo -e “${RED}Error:${PLAIN} This script must be run as root!” && exit 1 # check python if [ ! -e ‘/usr/bin/python’ ]; then echo -e read -p “${RED}Error:${PLAIN} python is not install. You must be install python command at first.\nDo you want to install? [y/n]” is_install if [[ ${is_install} == “y” || ${is_install} == “Y” ]]; then if [ “${release}” == “centos” ]; then yum -y install python else apt-get -y install python fi else exit fi ...

2017-09-25 · 7 min · 1339 words · Me