kubernetes学习笔记------kubectl: command not found
来源:互联网 发布:宁波java培训班 编辑:程序博客网 时间:2024/05/19 17:49
在成功安装了kubernetes 到主机上之后,按照文档(https://github.com/kubernetes/kubernetes/blob/master/docs/getting-started-guides/ubuntu.md#upgrading-a-cluster点击打开链接)的提示应该运行: kubectl get nodes 查看节点
但是会提示,找不到该命令command not found,,解决方法有以下两个
1 cd /root/kubernetes/cluster/ubuntu/binaries
这个文件夹中放着kubectl 的位二进制可执行文件, 在这个文件夹下面执行 kubectl get nodes 即可
2 将这个路径添加到系统的path,这个方法有很多,我选择的长期的方法,即不会因为终端关闭而失效的方法
编辑 vim /etc/profile
在最下面,改变环境变量path 再export 就可以了
export PATH="/root/kubernetes/cluster/ubuntu/binaries/:$PATH"
其他方法还有很多:点击打开链接
0 0
- kubernetes学习笔记------kubectl: command not found
- kubernetes中执行kubectl报错:kubectl: command not found
- python 学习笔记-python import: command not found
- Kubernetes之kubectl常用命令
- Kubernetes之kubectl常用命令
- kubernetes-kubectl命令说明
- Kubernetes常用命令(kubectl)
- Kubernetes之kubectl常用命令
- Kubernetes之kubectl常用命令
- command :hadoop:command not found
- bash:command not found
- rz: command not found
- command not found 解决方法
- crontab:command not found
- LINUX command not found
- qmake: command not found
- mkimage command not found
- ls command not found
- kamailio sip server 开发指南
- 网络监控相关的一些命令
- 关于Spring注解的一些说明
- 关于杀进程关闭activity的时候onDestroy的执行情况
- Qt4 inputpanel 升级改造
- kubernetes学习笔记------kubectl: command not found
- Android Sdk国内开发地址
- orcale 查询两个不同的条件的结果的差值(minus)
- AIX-topas命令
- 关于微信端分享页面的设置问题
- Java开发中的23种设计模式详解
- 知乎 如何才能热爱生活,对生活充满激情
- Android网络请求框架:Android-async-http简单使用
- 二级多菜单