下载anaconda:wget https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/Anaconda3-5.0.1-Linux-x86.sh
下载的文件的地址为当前工作目录
bash Anaconda3-5.0.1-Linux-x86.sh
根据提示:
Do you wish the installer to prepend the Anaconda3 install location
to PATH in your /root/.bashrc ? [yes|no]
[no] >>>
You may wish to edit your .bashrc to prepend the Anaconda3 install location to P ATH:
export PATH=/usr/local/python/bin:$PATH
Thank you for installing Anaconda3!
Linux : Ctrl + D 退出 python 命令行
Windows : Ctrl + C 或者 Ctrl + Z then + Enter
apt-get update是同步 /etc/apt/sources.list 和 /etc/apt/sources.list.d 中列出的源的索引,这样才能获取到最新的软件包。
apt-get upgrade是升级已安装的所有软件包,升级之后的版本就是本地索引里的,因此,在执行 upgrade 之前一定要执行 update, 这样才能是最新的。
安装docker:
apt-get install -y docker.io