吾爱破解 - 52pojie.cn

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 135|回复: 2
收起左侧

[经验求助] 求助指导mac本地部署metersphere

[复制链接]
LingyuanAxiu 发表于 2024-10-15 20:13
100吾爱币
如题所示,根据metersphere官方文档执行离线安装步骤,在执行install命令后,执行结果如下所示

lingyuan@lingyuandeMacBook-Pro metersphere-offline-installer-v2.10.20-lts % sudo sh install.sh
hostname: illegal option -- I
usage: hostname [-f] [-s | -d] [name-of-host]
hostname: illegal option -- I
usage: hostname [-f] [-s | -d] [name-of-host]
hostname: illegal option -- I
usage: hostname [-f] [-s | -d] [name-of-host]
/Users/lingyuan/Downloads/metersphere-offline-installer-v2.10.20-lts/install.conf: line 85: getent: command not found
存在已安装的 MeterSphere, 安装目录为 /opt/metersphere, 执行升级流程
-e [MeterSphere Log]: 拷贝安装文件到目标目录
cp: illegal option -- -
usage: cp [-R [-H | -L | -P]] [-fi | -n] [-aclpSsvXx] source_file target_file
cp [-R [-H | -L | -P]] [-fi | -n] [-aclpSsvXx] source_file ... target_directory
-e [MeterSphere Log]: ======================= 开始安装 =======================
-e [MeterSphere Log]: 检测到 Docker 已安装,跳过安装步骤
-e [MeterSphere Log]: 启动 Docker
install.sh: line 84: service: command not found
-e [MeterSphere Log]: 检测到 Docker Compose 已安装,跳过安装步骤
hostname: illegal option -- I
usage: hostname [-f] [-s | -d] [name-of-host]
hostname: illegal option -- I
usage: hostname [-f] [-s | -d] [name-of-host]
/Users/lingyuan/Downloads/metersphere-offline-installer-v2.10.20-lts/install.conf: line 85: getent: command not found
chmod: -R: No such file or directory
chmod: -R: No such file or directory
chmod: -R: No such file or directory
chmod: -R: No such file or directory
chmod: -R: No such file or directory
chmod: -R: No such file or directory
install.sh: line 165: syntax error near unexpected token >' install.sh: line 165:exec > >(tee -a ${__current_dir}/install.log) 2>&1'

发帖前要善用论坛搜索功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。

愿你一切安好 发表于 2024-10-15 21:43
tee -a ${__current_dir}/install.log) 看看具体的报错信息呢,看着是缺失目录,或者看下安装脚本的内容
 楼主| LingyuanAxiu 发表于 2024-10-16 08:30
愿你一切安好 发表于 2024-10-15 21:43
tee -a ${__current_dir}/install.log) 看看具体的报错信息呢,看着是缺失目录,或者看下安装脚本的内容

刚刚重新执行了下安装脚本,昨天的报错信息没有了,提示docker-compose版本与配置文件不兼容,仍有部分目录缺失

hostname: illegal option -- I
usage: hostname [-f] [-s | -d] [name-of-host]
hostname: illegal option -- I
usage: hostname [-f] [-s | -d] [name-of-host]
hostname: illegal option -- I
usage: hostname [-f] [-s | -d] [name-of-host]
/Users/lingyuan/Downloads/metersphere-offline-installer-v2.10.20-lts/install.conf: line 85: getent: command not found
存在已安装的 MeterSphere, 安装目录为 /opt/metersphere, 执行升级流程
-e [MeterSphere Log]: \e[31m从非LTS版本升级到LTS版本后,后续只能自动升级LTS版本,如升级非LTS版本,需手动升级!\e[0m
是否确认升级? [n/y]y
继续安装...
-e [MeterSphere Log]: 拷贝安装文件到目标目录
cp: ./metersphere/version: No such file or directory
cp: illegal option -- -
usage: cp [-R [-H | -L | -P]] [-fi | -n] [-aclpSsvXx] source_file target_file
       cp [-R [-H | -L | -P]] [-fi | -n] [-aclpSsvXx] source_file ... target_directory
cp: msctl: No such file or directory
-e [MeterSphere Log]: ======================= 开始安装 =======================
-e [MeterSphere Log]: 检测到 Docker 已安装,跳过安装步骤
-e [MeterSphere Log]: 启动 Docker
/Users/lingyuan/Downloads/metersphere-offline-installer-v2.10.20-lts/install.sh: line 84: service: command not found
-e [MeterSphere Log]: 检测到 Docker Compose 已安装,跳过安装步骤
hostname: illegal option -- I
usage: hostname [-f] [-s | -d] [name-of-host]
hostname: illegal option -- I
usage: hostname [-f] [-s | -d] [name-of-host]
/Users/lingyuan/Downloads/metersphere-offline-installer-v2.10.20-lts/install.conf: line 85: getent: command not found
chmod: /opt/metersphere/conf/my.cnf: No such file or directory
chmod: -R: No such file or directory
chmod: -R: No such file or directory
chmod: -R: No such file or directory
chmod: -R: No such file or directory
chmod: -R: No such file or directory
chmod: /opt/metersphere/conf: No such file or directory
chmod: -R: No such file or directory
chmod: /opt/metersphere/*.yml: No such file or directory

stat /opt/metersphere/docker-compose-base.yml: no such file or directory
-e [MeterSphere Log]: docker-compose 版本与配置文件不兼容或配置文件存在问题,请重新安装最新版本的 docker-compose 或检查配置文件
您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则

返回列表

RSS订阅|小黑屋|处罚记录|联系我们|吾爱破解 - LCG - LSG ( 京ICP备16042023号 | 京公网安备 11010502030087号 )

GMT+8, 2024-12-15 05:38

Powered by Discuz!

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表