Play Framework OpenShift 常用命令

Common Commands

 

rhc-tail-files  查看指定app的log信息

 

help

Displays a list of common commands to use

ctl_app

control your application

ctl_app start
ctl_app stop
ctl_app restart
ctl_app status

ctl_all

Similar to ctl_app but controlls application and deps like mysql in one command

ctl_all start
ctl_all stop
ctl_all restart
ctl_all status

export

Prints out all available environment variables and their current values which you may use in your application

rm

Removes a file or directory

Use this with care

Remove a file:

rm file

Remove a directory and all files and directories under it

rm -rf <dir>

tail_all

Displays the last entries in your log files as they are written to

You can hit <ctrl>-c to exit this command

ls

List files and directories

ps

List running applications

kill

Kill running applications using the process id found by calling ps

Be careful when using this command as it should only be used to kill runaway processes, otherwise it is preferable to stop them using the appropriate command such as ctl_app stop

mysql

Opens an interactive MySQL shell

mongo

Opens an interactive MongoDB shell

quota

Lists your application's current disk usage

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值