GitHub Actions 首先简单介绍下 GitHub Actions,其官方介绍页面为:https://github.com/features/actions,介绍语如下: Automate your workflow from idea to production. GitHub Actions makes it easy to automate all your software workflows, now with world-class CI/CD. Build, test, and deploy your code right from GitHub. Make code reviews, branch management, and issue triaging work the way you want. 简而言之就是提供了一个高效易用的 CI/CD 工作流,帮助我们自动构建、测试、部署我们的代码。 另外它支持三大平台—— Linux、MacOS、Windows,支持任何编程语言,而且官方提供了许许多多的 Actions 库供我们直接使用,帮助我们更快地搭建工作流。 GitHub Actions 的官方文档可以见:https://help.github.com/en/actions/automating-your-workflow-with-github-actions,如果大家想好好研究下的话,一定要好好看看。 一、准备工作 1.生成同步用的ssh密钥 ssh-keygen 2.添加公钥文件 id_rsa.pub 的内容至 Github、Gitee的个人配置里,点 Github 、 Gitee 。目的是为了可以使用git协议免输入密码。 3.新建Gitee私人令牌Token,点 这里 。添加后复制这次的Token内容。 4.Fork 工程 https://github.com/Yikun/hub-mirror-action 。 5.添加私钥 id_rsa 内容至刚刚 Fork 的 Github 项目 hub-mirror-action。 点击Settings...
ab(Apache benchmark)是一款常用的压力测试工具。 安装 sudo yum install httpd-tools 复制代码 命令参数 $ ab -h Usage: ab [options] [http[s]://]hostname[:port]/path Options are: -n requests Number of requests to perform -c concurrency [并发数 常用] Number of multiple requests to make -t timelimit [持续请求时间 常用]Seconds to max. wait for responses -b windowsize Size of TCP send/receive buffer, in bytes -p postfile File containing data to POST. Remember also to set -T -u putfile File containing data to PUT. Remember also to set -T -T content-type Content-type header for POSTing, eg. 'application/x-www-form-urlencoded' Default is 'text/plain' -v verbosity How much troubleshooting info to print -w Print out results in HTML tables -i Use HEAD instead of GET -x attributes String to insert as table attributes -y attributes String to insert as tr attributes -...
评论