💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
[TOC] ## **1.1 在线方式** 仅需两步快速安装 MeterSphere: 1. 准备一台不小于 8 G内存且可以访问互联网的 64位 Linux 主机; 2. 以 root 用户执行如下命令一键安装 MeterSphere。 ~~~shell curl -sSL https://github.com/metersphere/metersphere/releases/latest/download/quick_start.sh | sh ~~~ 如果你使用了 Kubernetes 及 Helm,还可以通过我们的[Helm Chart](https://github.com/metersphere/helm-chart)进行部署。 <br /> ### **一键升级** 如果您已经部署了 MeterSphere 的 v1.4.3 及以上版本,可通过如下命令一键升级至最新版本 ~~~shell msctl upgrade ~~~ 浏览器插件:[https://github.com/metersphere/chrome-extensions/releases](https://github.com/metersphere/chrome-extensions/releases) Jenkins 插件:[https://github.com/metersphere/jenkins-plugin/releases](https://github.com/metersphere/jenkins-plugin/releases) <br /> ## **1.2 离线方式** ### **下载安装包** [](https://metersphere.io/docs/installation/offline_installation/#_2 "Permanent link") 请自行下载 MeterSphere 最新版本的离线安装包,并复制到目标机器的 /tmp 目录下 安装包下载链接:[https://github.com/metersphere/metersphere/releases](https://github.com/metersphere/metersphere/releases) <br /> ### **解压安装包** [](https://metersphere.io/docs/installation/offline_installation/#_3 "Permanent link") 以 root 用户 ssh 登录到目标机器, 并执行如下命令 ~~~ cd /tmp # 临时文件,重启系统后会被删掉,建议切换到别的目录下面 # 解压安装包 tar zxvf metersphere-release-v1.0.3-offline.tar.gz ~~~ <br /> ### **修改安装配置(可选)** [](https://metersphere.io/docs/installation/offline_installation/#_4 "Permanent link") 在安装包解压后的目录,编辑修改安装参数 ~~~ cd metersphere-release-v1.0.3-offline vim install.conf ~~~ > 安装配置文件说明, 如果无特殊需求可以不进行修改采用默认参数安装 安装脚本默认使用 /opt/metersphere 目录作为安装目录,MeterSphere 的配置文件、数据及日志等均存放在该安装目录 <br /> ### **执行安装脚本** [](https://metersphere.io/docs/installation/offline_installation/#_5 "Permanent link") ~~~ # 进入安装包目录 cd metersphere-release-v1.0.3-offline # 运行安装脚本 /bin/bash install.sh # 等待安装脚本执行完成后,查看 MeterSphere 状态 msctl status ~~~ 安装成功后,通过浏览器访问如下页面登录 MeterSphere ~~~ 地址: http://目标服务器IP地址:8081 用户名: admin 密码: metersphere ~~~ <br /> ### **升级** [](https://metersphere.io/docs/installation/offline_installation/#_6 "Permanent link") 按照本文档前述步骤, 下载新版本安装包并上传解压后, 重新执行安装命令进行升级 ~~~ # 进入项目目录 cd metersphere-release-v1.x.y-offline # 运行安装脚本 /bin/bash install.sh # 查看 MeterSphere 状态 msctl status ~~~ **注意** 如果在旧版本安装过程中有修改安装目录(默认为 /opt 目录), 在执行升级脚本前需要修改 install.conf 文件并配置安装目录为旧版本的安装目录