Apache Stratos探究:CLI Tool简单使用手册

pache starts提供CLI(command line interface)工具,用来管理starts上的应用程序。
    关于如何下载和配置,可以看下面这篇文章。
    CLI Tool可以两种模式运行。
  •     Interactive mode
              交互方式,走走停停。
  •     Single command line mode
              只执行一次命令

Interactive mode

 1.登录,必要时输入管理帐号和密码
       执行下面的命令
   ./stratos.sh
比如:
   
James:bin jameswest$ ./stratos.sh
Username: admin
Password: *****
Successfully authenticated

2.帮助
  登入成功之后,输入help即可
  如图
  
 
3.自动完成功能。类似终端都有的自动补写命令功能,只要按下Tab键就可以了
   支持的命令
activate-tenant                  add-application                  add-autoscaling-policy           add-cartridge                    add-cartridge-group              
add-deployment-policy            add-domain-mappings              add-kubernetes-cluster           add-kubernetes-host              add-network-partition            
add-tenant                       add-user                         create-application               deactivate-tenant                deploy-application               
describe-application             describe-application-runtime     describe-application-signup      describe-autoscaling-policy      describe-cartridge               
describe-cartridge-group         describe-deployment-policy       describe-kubernetes-cluster      describe-kubernetes-master       describe-network-partition       
describe-tenant                  exit                             help                             list-applications                list-autoscaling-policies        
list-cartridge-groups            list-cartridges                  list-cartridges-by-filter        list-deployment-policies         list-domain-mappings             
list-kubernetes-clusters         list-kubernetes-hosts            list-network-partitions          list-tenants                     list-tenants-by-partial-domain   
list-users                       remove-application               remove-application-signup        remove-autoscaling-policy        remove-cartridge                 
remove-cartridge-group           remove-deployment-policy         remove-domain-mappings           remove-kubernetes-cluster        remove-kubernetes-host           
remove-network-partition         remove-user                      synchronize-artifacts            undeploy-application             update-autoscaling-policy        
update-cartridge                 update-deployment-policy         update-kubernetes-host           update-kubernetes-master         update-network-partition         
update-tenant                    update-user

  

Single command line mode

     只执行一条单一的命令。
     格式:
  ./stratos.sh -u [username] -p [password] [action commands]
  比如:
   
   

   图中的这些cartridges,也可以在UI界面上直接查看。(这里的esb,nodejs什么版本的,都只是自己测试时候,瞎写的,可能有些参数是不对的,不如上面都是版本7啊什么的
   对应的UI界面
   
   
  
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值