zsh:找不到命令:dcos

zsh: command not found: dcos

我试图通过 dcos-vagrant 在我的 Mac 上安装 DC/OS 集群。

安装很顺利ui,没有发现错误。

==> m1: sudo: chmod u+x /opt/mesosphere/bin/postflight.sh
==> m1: sudo: /opt/mesosphere/bin/postflight.sh
==> boot: DC/OS Installation Complete
==> boot: Web Interface: http://m1.dcos/

但是当我选择 http://m1.dcos/ 时,不显示 web-ui,显示 ERR_EMPTY_RESPONSE 错误,并且找不到 dcos 命令。

GET http://m1.dcos/ net::ERR_EMPTY_RESPONSE

➜  dcos-vagrant git:(master) dcos marathon app add https://dcos.io/docs/1.7/usage/nginx.json
zsh: command not found: dcos

任何人都可以帮助我!提前致谢!


由于我没有安装 dcos CLI,dcos 无法工作。

intallation DC/OS CLI

要安装 CLI,请复制并粘贴到您的终端:

mkdir -p dcos
cd dcos
curl -O https://downloads.dcos.io/dcos-cli/install.sh 
bash ./install.sh . https://m1.dcos
source ./bin/env-setup

来自 http://m1.dcos/ 的空响应似乎表明 UI 服务或管理路由器有问题,但 CLI 工作意味着管理路由器可以访问并正确代理 Marathon 和 Mesos 等组件。

您可以检查管理路由器日志,看看它是否在服务 UI html/js.

时遇到问题

状态:

systemctl status dcos-adminrouter.service

日志:

journalctl -u dcos-adminrouter