openshift 是一个很不错的空间,可惜有时候经不起折腾,application 可能会被搞 down 掉

我的环境是 fedora 17, 不过操作应该差不多,windows 可以用 putty 之类替代 linux 的 ssh

~/.ssh 文件夹中生成id_rsa.pub 和 id_rsa

$ ssh xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx@app-argcandargv.rhcloud.com
......
    Welcome to OpenShift shell
........

$ ctl_all restart
Waiting for stop to finish
Waiting for stop to finish
MySQL already stopped
Done
Done
$

再次尝试登录

虽然没有502,但mysql还是挂着,那么再来

$ ssh xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx@app-argcandargv.rhcloud.com
......
$ ctl_all restart
Waiting for stop to finish
Waiting for stop to finish
MySQL already stopped
Done
Done
$ ctl_all start
MySQL already running
httpd (pid 26184) already running
httpd (pid 26241) already running
Done

很好,完美收工。

最后,如果真被玩完了,还是接受那openshift的建议吧

If worse comes to worst, destroy your application with rhc app destroy and recreate it

Categories: Code

Yu

Ideals are like the stars: we never reach them, but like the mariners of the sea, we chart our course by them.

Leave a Reply

Your email address will not be published.