zsh:找不到命令:dcos

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

Intsallation非常stream畅,没有发现错误。

==> 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错误,并且找不到ERR_EMPTY_RESPONSE命令。

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不能工作,我没有安装dcos CLI。

安装DC / OS CLI

要安装CLI,请复制并粘贴到您的terminal中:

 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服务或pipe理路由器有问题,但CLI工作意味着pipe理路由器可到达并正确代理Marathon&Mesos等组件。

您可能会检查pipe理员路由器日志,以查看是否无法提供UI html / js服务。

状态:

 systemctl status dcos-adminrouter.service 

日志:

 journalctl -u dcos-adminrouter