linux系统添加环境变量

vim  /etc/profile  

export PATH="/opt/kubernetes/bin/:$PATH"

source /etc/profile

[root@master k8s-prometheus]# which kubectl
/opt/kubernetes/bin/kubectl

猜你喜欢

转载自www.cnblogs.com/dengmeinan/p/10873734.html
今日推荐