0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

AWS環境下で、mysql5.6系をインストールしたら、unicornが起動しなくなった

Posted at

yumでインストール済みのmysqlを削除

※バックアップ等はしっかり行うこと。

sudo yum remove mysql*


### Mysql5.6系をyum install

```bash
sudo yum install http://ftp.jaist.ac.jp/pub/mysql/Downloads/MySQL-5.6/MySQL-client-5.6.10-1.el6.x86_64.rpm \              http://ftp.jaist.ac.jp/pub/mysql/Downloads/MySQL-5.6/MySQL-shared-compat-5.6.10-1.el6.x86_64.rpm \              http://ftp.jaist.ac.jp/pub/mysql/Downloads/MySQL-5.6/MySQL-server-5.6.10-1.el6.x86_64.rpm \              http://ftp.jaist.ac.jp/pub/mysql/Downloads/MySQL-5.6/MySQL-devel-5.6.10-1.el6.x86_64.rpm  \               http://ftp.jaist.ac.jp/pub/mysql/Downloads/MySQL-5.6/MySQL-shared-5.6.10-1.el6.x86_64.rpm

おまじない

sudo mysql_install_db```

起動中かもしれないので、再起動

sudo /etc/rc.d/init.d/mysql restart 

gemの隠し場所にあるファイルからインストールしたgemを初期状態へ戻す

gem pristine mysql2

unicorn起動

unicorn_rails -c config/unicorn.conf -D 

確認

$ ps auxww | grep unicorn
ec2-user 20848  0.0  8.4 168952 51164 ?        Sl   11:42   0:01 unicorn_rails master -c config/unicorn.conf -D                            
ec2-user 20851  0.0 13.4 827776 81840 ?        Sl   11:42   0:01 unicorn_rails worker[0] -c config/unicorn.conf -D                         
ec2-user 20854  0.0 10.1 257516 61496 ?        Sl   11:42   0:00 unicorn_rails worker[1] -c config/unicorn.conf -D                         
ec2-user 21387  0.0  0.0   6596   592 pts/0    S+   15:25   0:00 grep unicorn
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?