如何解决“oc 未被识别为内部或外部命令”问题?

问题描述 投票:0回答:2

我已经安装了 Minishift,并成功启动了它,但现在我无法使用 oc 命令。请帮忙。下面是截图。

oc command not found

openshift minishift
2个回答
0
投票

解决这个问题:-

  1. 获取 oc 命令的路径:- # minishift oc-env
  2. 使用 SET PATH 命令设置路径。

请参阅下面的屏幕截图以供参考。

enter image description here


0
投票

1 下载 oc.exe https://developers.redhat.com/openshift/command-line-tools

2 导航到环境变量 -> 系统变量 -> 新建

3 在此处添加:/path/to/the/oc.exe

© www.soinside.com 2019 - 2024. All rights reserved.