介绍
MeterSphere 是一站式开源持续测试平台,涵盖测试跟踪、接口测试、性能测试、团队协作等功能,兼容JMeter 等开源标准,有效助力开发和测试团队充分利用云弹性进行高度可扩展的自动化测试,加速高质量软件的交付。
前提条件
1、需要一台不小于8G内存且可以访问互联网的64位Linux主机;
2、以root用户执行如下命令一键安装MeterSphere。
1、脚本下载并安装
[root@master1 ~]# curl -sSL https://github.com/metersphere/metersphere/releases/latest/download/quick_start.sh | sh
--2021-01-13 06:18:03-- https://github.com/metersphere/metersphere/releases/latest/download/metersphere-release-v1.6.2.tar.gz
Resolving github.com (github.com)... 13.250.177.223
Connecting to github.com (github.com)|13.250.177.223|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github.com/metersphere/metersphere/releases/download/v1.6.2/metersphere-release-v1.6.2.tar.gz [following]
--2021-01-13 06:18:04-- https://github.com/metersphere/metersphere/releases/download/v1.6.2/metersphere-release-v1.6.2.tar.gz
Reusing existing connection to github.com:443.
HTTP request sent, awaiting response... 302 Found
Location: https://github-production-release-asset-2e65be.s3.amazonaws.com/237867883/ef1cd680-5037-11eb-9e47-af03443a9c33?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20210113%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20210113T111804Z&X-Amz-Expires=300&X-Amz-Signature=8ef19220d5244c90fad92c9a6f5e7ad41000a066cf32190d7a171f3dcfb56d3f&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=237867883&response-content-disposition=attachment%3B%20filename%3Dmetersphere-release-v1.6.2.tar.gz&response-content-type=application%2Foctet-stream [following]
--2021-01-13 06:18:04-- https://github-production-release-asset-2e65be.s3.amazonaws.com/237867883/ef1cd680-5037-11eb-9e47-af03443a9c33?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20210113%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20210113T111804Z&X-Amz-Expires=300&X-Amz-Signature=8ef19220d5244c90fad92c9a6f5e7ad41000a066cf32190d7a171f3dcfb56d3f&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=237867883&response-content-disposition=attachment%3B%20filename%3Dmetersphere-release-v1.6.2.tar.gz&response-content-type=application%2Foctet-stream
Resolving github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)... 52.217.100.116
Connecting to github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)|52.217.100.116|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 8039 (7.9K) [application/octet-stream]
Saving to: ‘metersphere-release-v1.6.2.tar.gz’
100%[========================================================================================================================================================================>] 8,039 11.3KB/s in 0.7s
2021-01-13 06:18:06 (11.3 KB/s) - ‘metersphere-release-v1.6.2.tar.gz’ saved [8039/8039]
metersphere-release-v1.6.2/
metersphere-release-v1.6.2/quick_start.sh
metersphere-release-v1.6.2/msctl
metersphere-release-v1.6.2/install.sh
metersphere-release-v1.6.2/metersphere/
metersphere-release-v1.6.2/metersphere/docker-compose-kafka.yml
metersphere-release-v1.6.2/metersphere/docker-compose-node-controller.yml
metersphere-release-v1.6.2/metersphere/docker-compose-mysql.yml
metersphere-release-v1.6.2/metersphere/conf/
metersphere-release-v1.6.2/metersphere/conf/my.cnf
metersphere-release-v1.6.2/metersphere/conf/version
metersphere-release-v1.6.2/metersphere/conf/metersphere.properties
metersphere-release-v1.6.2/metersphere/version
metersphere-release-v1.6.2/metersphere/docker-compose-base.yml
metersphere-release-v1.6.2/metersphere/bin/
metersphere-release-v1.6.2/metersphere/bin/mysql/
metersphere-release-v1.6.2/metersphere/bin/mysql/init.sql
metersphere-release-v1.6.2/metersphere/docker-compose-server.yml
metersphere-release-v1.6.2/metersphere/logs/
metersphere-release-v1.6.2/metersphere/logs/README.md
metersphere-release-v1.6.2/install.conf
metersphere-release-v1.6.2/Jenkinsfile
metersphere-release-v1.6.2/README.md
======================= 开始安装 =======================
time: Wed Jan 13 06:18:06 EST 2021
[MeterSphere Log]: 检测到 Docker 已安装,跳过安装步骤
[MeterSphere Log]: 启动 Docker
Redirecting to /bin/systemctl start docker.service
which: no docker-compose in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin)
[MeterSphere Log]: ... 在线安装 docker-compose
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 651 100 651 0 0 1918 0 --:--:-- --:--:-- --:--:-- 1914
100 11.6M 100 11.6M 0 0 21361 0 0:09:32 0:09:32 --:--:-- 26035
[MeterSphere Log]: 拉取镜像
Pulling ms-node-controller ... done
Pulling mysql ... done
Pulling ms-server ... done
Pulling zookeeper ... done
Pulling kafka ... done
Pulling ms-data-streaming ... done
5.3-ms14: Pulling from metersphere/jmeter-master
801bfaa63ef2: Pulling fs layer
59f8794b5182: Pulling fs layer
b0c05bf17fb2: Pulling fs layer
4e59daf8f2d1: Pulling fs layer
a8d3bfc40c06: Pulling fs layer
07be4530e3ef: Pulling fs layer
4e59daf8f2d1: Waiting
07be4530e3ef: Waiting
a8d3bfc40c06: Waiting
b0c05bf17fb2: Verifying Checksum
4e59daf8f2d1: Verifying Checksum
4e59daf8f2d1: Download complete
a8d3bfc40c06: Verifying Checksum
a8d3bfc40c06: Download complete
801bfaa63ef2: Verifying Checksum
801bfaa63ef2: Download complete
801bfaa63ef2: Pull complete
07be4530e3ef: Verifying Checksum
07be4530e3ef: Download complete
59f8794b5182: Verifying Checksum
59f8794b5182: Download complete
59f8794b5182: Pull complete
b0c05bf17fb2: Pull complete
4e59daf8f2d1: Pull complete
a8d3bfc40c06: Pull complete
07be4530e3ef: Pull complete
Digest: sha256:37aabd433e70ba5de7d9581ffb470979e30d5348e4cb2a0339a45415d5bc97c2
Status: Downloaded newer image for registry.cn-qingdao.aliyuncs.com/metersphere/jmeter-master:5.3-ms14
registry.cn-qingdao.aliyuncs.com/metersphere/jmeter-master:5.3-ms14
/root/metersphere-release-v1.6.2
[MeterSphere Log]: 启动服务
Removing network metersphere_ms-network
Network metersphere_ms-network not found.
Removing volume metersphere_ms-conf
Volume metersphere_ms-conf not found.
Removing volume metersphere_ms-logs
Volume metersphere_ms-logs not found.
Removing volume metersphere_ms-data
Volume metersphere_ms-data not found.
Removing volume metersphere_ms-jmeter-data
Volume metersphere_ms-jmeter-data not found.
Removing volume metersphere_ms-mysql-data
Volume metersphere_ms-mysql-data not found.
Removing volume metersphere_ms-zookeeper-data
Volume metersphere_ms-zookeeper-data not found.
Removing volume metersphere_ms-kafka-data
Volume metersphere_ms-kafka-data not found.
Creating network "metersphere_ms-network" with the default driver
Creating volume "metersphere_ms-conf" with default driver
Creating volume "metersphere_ms-logs" with default driver
Creating volume "metersphere_ms-data" with default driver
Creating volume "metersphere_ms-jmeter-data" with default driver
Creating volume "metersphere_ms-mysql-data" with default driver
Creating volume "metersphere_ms-zookeeper-data" with default driver
Creating volume "metersphere_ms-kafka-data" with default driver
Creating mysql ... done
Creating ms-node-controller ... done
Creating zookeeper ... done
Creating kafka ... done
Creating ms-data-streaming ... done
Creating ms-server ... done
Name Command State Ports
----------------------------------------------------------------------------------------------------------------------------
kafka /opt/bitnami/scripts/kafka ... Up (healthy) 0.0.0.0:19092->19092/tcp, 9092/tcp
ms-data-streaming /deployments/run-java.sh Up (health: starting) 0.0.0.0:8084->8084/tcp, 0.0.0.0:8085->8085/tcp
ms-node-controller /deployments/run-java.sh Up (healthy) 0.0.0.0:8082->8082/tcp
ms-server /deployments/run-java.sh Up (health: starting) 0.0.0.0:8081->8081/tcp
mysql docker-entrypoint.sh mysqld Up (healthy) 0.0.0.0:3307->3306/tcp, 33060/tcp
zookeeper /opt/bitnami/scripts/zooke ... Up (healthy) 2181/tcp, 2888/tcp, 3888/tcp, 8080/tcp
======================= 安装完成 =======================
请通过以下方式访问:
URL: http://$LOCAL_IP:8081
用户名: admin
初始密码: metersphere
您可以使用命令 'msctl status' 检查服务运行情况.