点此报名《大数据、容器、云原生应用主题系列技术研讨会第二场》
一、安装最新版 virtualbox
1. Windows 操作系统
下载最新版virtualbox并且安装
https://download.virtualbox.org/virtualbox/5.2.14/VirtualBox-5.2.14-123301-Win.exe
2. macOS 操作系统
下载最新版virtualbox并且安装
https://download.virtualbox.org/virtualbox/5.2.14/VirtualBox-5.2.14-123301-OSX.dmg
如果是brew用户,也可以使用brew 安装virtualbox
brew cask install virtualbox
3. Linux 操作系统
(1)CentOS 7.x:
创建/etc/yum.repos.d/vbox.repo
:
[virtualbox]
name=Oracle Linux / RHEL / CentOS-$releasever / $basearch - VirtualBox
baseurl=http://download.virtualbox.org/virtualbox/rpm/el/$releasever/$basearch
enabled=1
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://www.virtualbox.org/download/oracle_vbox.asc
然后运行下面命令:
# yum update
# yum install kernel-headers kernel-devel VirtualBox-5.2
# /sbin/vboxconfig
# VBoxManage -v
如果VBoxManage -v
命令能够正确返回virtualbox版本信息说明安装成功
(2)Ubuntu 18.04
# apt install virtualbox
其他Linux发行版请自行参阅virtualbox安装说明
二、安装Cloud Foundry命令行工具
1. Windows 操作系统
下载安装包,并且安装
https://cli.run.pivotal.io/stable?release=windows64&source=github
2. macOS 操作系统
$ brew tap cloudfoundry/tap
$ brew install cf-cli
3. Linux 操作系统
(1) CentOS 7.x
运行如下命令:
# wget -O /etc/yum.repos.d/cloudfoundry-cli.repo https://packages.cloudfoundry.org/fedora/cloudfoundry-cli.repo
# yum install cf-cli
(2) Ubuntu 18.04
$ sudo wget -q -O - https://packages.cloudfoundry.org/debian/cli.cloudfoundry.org.key | sudo apt-key add -
$ sudo echo "deb https://packages.cloudfoundry.org/debian stable main" | sudo tee /etc/apt/sources.list.d/cloudfoundry-cli.list
$ sudo apt update
$ sudo apt install cf-cli