Cloud Foundry V2 的文章目录在 Cloud Foundry V2 相关文章目录
我会不定期的做一些文章的更改,如有不便之处还要谅解。
在部署中遇到了什么问题可以在下面留言。
本博客的所有yml stemcell 和 release 都能在百度云上下载 http://pan.baidu.com/s/1pJHkPYV
如果你有对配置文件或者CF运维有什么更好的想法请联系我,我非常需要你的帮助
Bosh Cli客户机用于下载及存储Bosh及CloudFoundry代码、软件包等,同时作为本次部署行为的控制机,所有指令都在Bosh Cli客户机上执行,可以使用安装了Ubuntu(12.04++)系统的物理机或者虚拟机。
1、安装Ruby环境
1.1 更换Ubuntu软件源
备份sources.list
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
创建sources.list
sudo touch /etc/apt/sources.list
编辑dources.list
sudo vi /etc/apt/sources.list
将sources.list修改为以下内容
deb http://mirrors.163.com/ubuntu/ precise main restricted deb-src http://mirrors.163.com/ubuntu/ precise main restricted deb http://mirrors.163.com/ubuntu/ precise-updates main restricted deb-src http://mirrors.163.com/ubuntu/ precise-updates main restricted deb http://mirrors.163.com/ubuntu/ precise universe deb-src http://mirrors.163.com/ubuntu/ precise universe deb http://mirrors.163.com/ubuntu/ precise-updates universe deb-src http://mirrors.163.com/ubuntu/ precise-updates universe deb http://mirrors.163.com/ubuntu/ precise multiverse deb-src http://mirrors.163.com/ubuntu/ precise multiverse deb http://mirrors.163.com/ubuntu/ precise-updates multiverse deb-src http://mirrors.163.com/ubuntu/ precise-updates multiverse deb http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse deb http://mirrors.163.com/ubuntu/ precise-security main restricted deb-src http://mirrors.163.com/ubuntu/ precise-security main restricted deb http://mirrors.163.com/ubuntu/ precise-security universe deb-src http://mirrors.163.com/ubuntu/ precise-security universe deb http://mirrors.163.com/ubuntu/ precise-security multiverse deb-src http://mirrors.163.com/ubuntu/ precise-security multiverse deb http://extras.ubuntu.com/ubuntu precise main deb-src http://extras.ubuntu.com/ubuntu precise main
1.2 使用RVM方式安装Ruby
安装RVM
curl -L https://get.rvm.io | bash -s stable
安装ruby
rvm install 1.9.3
2、安装bosh cli
2.1 安装bosh cli依赖环境
sudo apt-get install git-core build-essential libsqlite3-dev curl libmysqlclient-dev libxml2-dev libxslt-dev libpq-dev genisoimage
2.2 安装bosh cli
更换 gem 源
gem sources --remove https://rubygems.org/ gem sources -a http://ruby.taobao.org/
使用gem安装bosh cli
gem install bosh_cli gem install bosh_cli_plugin_micro
可能在此处会有人遇到 gem 不是系统命令的错误 ,重新登录下就好了
ssh localhost
验证是否安装成功
bosh -v BOSH 1.2745.0