1. 去PCF官网注册一个免费帐号,地址是: https://login.run.pivotal.io/loginhtml
2.安装PCF的命名,cf cli. 地址https://pivotal.io/platform/pcf-tutorials/getting-started-with-pivotal-cloud-foundry/install-the-cf-cligit
3. 经常使用命令api
login 命令
cf login -a https://api.run.pivotal.io 登陆pcf.
接着会输入username and password
若是提示timeout 或须要设置代理,请到系统变量去设置代理,添加一个变量是 https_proxy,值是http://host:port
push你的code
cf push your appname git url
or
cf push
上面2种均可以.
其实cf help 能够看到不少命令.
可是最好仍是经过yml文件去控制一些相关参数.
PCF document address: https://docs.pivotal.io/pivotalcf/installing/pcf-docs.html