Code Monkey home page Code Monkey logo

speedtest-go-script's Introduction

speedtest go 版本一键安装脚本

speedtest 项目的 go 版本一键安装脚本,测速相关使用请参考原仓库

环境要求

  • 支持的操作系统:CentOS 7-8、Debian 8-10、Ubuntu 16-18
  • 操作系统要求64位

安装

一键安装脚本(使用root用户):

bash <(curl -Lsk https://raw.githubusercontent.com/BigMangos/speedtest-go-script/master/install.sh)

如果出现-bash: curl: command not found错误,说明curl命令没安装,请输入下面的命令先安装curl,再回过头来执行上面的命令再来一次。

#Debian or Ubuntu
apt-get -y install curl
#CentOS
yum -y install curl

更新

2020/4/19

  • 增加了脚本内启动、停止命令

2020/4/21

  • 增加了设置监听端口以及修改监听端口

小问题

请教一下如何检测Linux是否安装了go呢?

在安装了go的系统下,在脚本导入了环境变量,用which go检测,执行并没有返回,不在shell中正常返回

致谢

  • 感谢 speedtest 项目组提供优秀的测速项目
  • 本脚本编写参考了 @xiaoz.me 的 CCAA 项目,在此表示感谢

speedtest-go-script's People

Contributors

bigmangos avatar xmxs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

speedtest-go-script's Issues

请增加自定义测速线程选项

目前脚本里头默认下载是6线程,上传是3线程,希望能够增加自定义线程的选项,以贴近正常网页浏览(如YouTube、netflix、Instagram、Facebook等)的使用场景。谢谢大佬开发!!

404 during installation

--2022-07-10 21:46:24-- https://golang.org/dl/.linux-amd64.tar.gz
Resolving golang.org (golang.org)... 142.250.68.17, 2607:f8b0:4007:817::2011
Connecting to golang.org (golang.org)|142.250.68.17|:443... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://go.dev/dl/.linux-amd64.tar.gz [following]
--2022-07-10 21:46:25-- https://go.dev/dl/.linux-amd64.tar.gz
Resolving go.dev (go.dev)... 216.239.36.21, 216.239.34.21, 216.239.32.21, ...
Connecting to go.dev (go.dev)|216.239.36.21|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2022-07-10 21:46:25 ERROR 404: Not Found.

tar (child): /tmp/.linux-amd64.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
fatal: destination path 'speedtest-go' already exists and is not an empty directory.

Linux kind-echo-1.localdomain 4.10.4-1.el7.elrepo.x86_64 #1 SMP Sat Mar 18 12:50:10 EDT 2017 x86_64 x86_64 x86_64 GNU/Linux

是不是 Linux 版本的问题啊?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.