minikube安装过程遇到的问题
1、国外镜像拉取不下来问题
2、mac brew cask 安装minikube
3、windows powerShell choco 安装minkube
安装homebrew
1、安装homebrew文件
cd ~
curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install >> brew_install
另外一种形式:/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
卸载:/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
2、更改脚本中的资源链接,替换成中科大的镜像,编辑brew_install文件
注释掉BREW_REPO = "https://github.com/Homebrew/brew".freeze
修改为BREW_REPO = "https://mirrors.ustc.edu.cn/brew.git".freeze
3、/usr/bin/ruby brew_install
4、进入下面的 Taps 目录,clone homebrew-core
cd /usr/local/Homebrew/Library/Taps/homebrew
git clone https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git
5、把homebrew repo切换为清华镜像
cd "(brew --repo)/Library/Taps/homebrew/homebrew-core"
git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git
brew update
6、替换 Bottles 源
Homebrew Bottles是Homebrew提供的二进制代码包,目前镜像站收录了以下仓库:
homebrew/homebrew-core
homebrew/homebrew-dupes
homebrew/homebrew-games
homebrew/homebrew-gui
homebrew/homebrew-python
homebrew/homebrew-php
homebrew/homebrew-science
homebrew/homebrew-versions
homebrew/homebrew-x11
替换方式如下
bash(默认 shell)用户
echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles' >> ~/.bash_profile
source ~/.bash_profile
对于zsh用户
echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles' >> ~/.zshrc
source ~/.zshrc
6、终端会显示Already up-to-date.到此,homebrew就安装完毕了
基础命令:
1、vim /etc/profile(sudo vim /etc/profile)
export PATH=/usr/local/bin:$PATH
source /etc/profile
2、切换到root用户的命令为 su -,从root用户切换回普通用户 su - test
3、chown、chmod
4、vim、vi
5、touch命令
一是用于把已存在文件的时间标签更新为系统当前的时间(默认方式),它们的数据将原封不动地保留下来;
二是用来创建新的空文件
brew命令
1、brew instlal kubectl
2、brew cask install minikube
3、brew doctor
4、brew search
5、brew update
6、brew version
HomeBrew 安装软件慢的解决方法(解决方法就是更换国内镜像源):
homebrew 默认的源是在 github 上面,每次更新速度都会非常慢。所以我们更换成国内的镜像源。就会快很多了
1、 git clone git://mirrors.ustc.edu.cn/homebrew-core.git/ /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core --depth=1
2、cd "$(brew --repo)"
git remote set-url origin https://mirrors.ustc.edu.cn/brew.git
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git
minikube安装:
1、curl -Lo minikube http://kubernetes.oss-cn-hangzhou.aliyuncs.com/minikube/releases/v0.28.0/minikube-darwin-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/
minikube命令:
1、minikube version
2、minikube dashboard 启动控制面板
3、minikube start --vm-driver=virtualbox
4、minikube stop
5、minikube status
windows choco安装
1、cmd中输入powershell
2、安装VirtualBox
apt-get、yum、yarn
wget
linux
systemctl
service