macでsshしようとするとたまに出る。
[naoto@MBA ~] $ ssh root@192.168.5.222
Received disconnect from 192.168.5.222: 2: Too many authentication failures for root
Continue reading
macでsshしようとするとたまに出る。
[naoto@MBA ~] $ ssh root@192.168.5.222
Received disconnect from 192.168.5.222: 2: Too many authentication failures for root
CentOS 5系のサーバを何気なくrebootしたら上がってこなくなった。
慌ててリモートコンソール繋ぐと、
INIT: version 2.86 booting
Welcome to CentOS release 5 (Final)
Press ‘I’ to enter interactive startup.
この画面で止まってた。。
Redmine構築したのでメモ。(いつも忘れてググってるので。。)
Apache Passengerは使わず、unicornで起動してproxyとしてnginxを使います。unicornはupstartで起動します。rubyはrbenvでお好きなものを。
ec2上にmysqlサーバ建てて、AMI作成してそこからインスタンスもう1台あげてレプリケーション組もうとしたら詰まったのでメモ。
いつも通り設定して start slave; して show slave status\G したらなんかエラー吐いてIOスレッド止まってた。。。
Redis-Sentinelを使って冗長化するとき、VIPの制御はどうしよっかな〜と思っていろいろ調べた結果、 client-reconfig-script を使うとVIP付けれそう!ってことがわかって、やってみたのでまとめ。
いつも忘れるのでメモ。
sed -i "s|net.ipv4.ip_forward = 0|net.ipv4.ip_forward = 1|" /etc/sysctl.conf
sysctl -p
iptables -t nat -A POSTROUTING -s 192.168.10.0/255.255.255.0 -j MASQUERADE
service iptables save