ココに、OpenShiftにSSHログインした後で使用可能なコマンドリストがあったので書いておく。
Remotely Accessing your App with SSH
https://openshift.redhat.com/community/developers/remote-access
ほとんどがLinuxを使ったことがあれば誰でも知ってるコマンドだけどね。
Common Commands
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
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 件のコメント:
コメントを投稿