ASi

2017-09-01から1ヶ月間の記事一覧

CLIのOSXへのインストール

AWS

下記に説明がある。 http://docs.aws.amazon.com/ja_jp/streams/latest/dev/kinesis-tutorial-cli-installation.html install pip $ curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py % Total % Received % Xferd Average Speed Time Time Time Cur…

EC2を止める時の挙動

AWS

sudo shutdown -H 0 では stopped になる。再起動可能。 はっきりしないが powered off にすると terminated になり、再起動不能。しばらくのち削除される。

CodeDeploy の lifecycle event hook の ValidateService と AfterAllowTraffic

AWS

下記記事参考になったのだが、 http://dev.classmethod.jp/cloud/aws/rolling-update-when-codedeploy-using-elb-health-check/ ValidateService で行うと該当の instance の ELB への登録に進まず、デッドロックしてタイムアウトする。 同じことを AfterAll…

htdigest が生成するもの

https://httpd.apache.org/docs/2.4/misc/password_encryptions.html#digest に公式のドキュメントがある。 下記を生成している username + ':' + realm + ':' + LOWERCASE(HEXSTR(MD5(username + ':' + realm + ':' + password))) $ htdigest -c digestpass…

keep ssh tunnel active if it was terminated

shell script で実現できる。sshに限らず他のコマンドでも可能。 下記の script を chkconfig で登録した script の start などから & でバックグラウンド呼び出しすれば良い。(ref http://d.hatena.ne.jp/ashura156/20170911/1505114755)(ssh以外のコマンド…

Daemon / Service 追加

vi /etc/init.d/my_service #!/bin.sh # chkconfig: 2345 85 15 # description: my service case "$1" in start) echo "Start" ;; stop) echo "Stop" ;; *) echo $"Usage: {start|stop|restart}" esac 実行権付与 chmod 755 /etc/init.d/my_service service …

563399

cnt

2011/11/07 186095 2011/12/18 194523 2012/01/22 202069 2012/03/03 211920 2012/11/21 267002 2012/12/15 272241 2013/01/16 277943 2013/04/14 292287 2013/06/23 304255 2013/07/14 307741 2013/10/05 325664 2013/12/23 345326 2014/02/17 357676 2014/…

apache で Windows Domain login を使う (Kerberos)

mod_auth_kerb を使う http://modauthkerb.sourceforge.net/configure.html Amazon Linux の場合 apache 2.2 と 2.4 で yum の名前が違う。 2.4 の場合 mod24_auth_kerb.x86_64 と 24 が付いている。 特定の apache でホストする URL へのアクセス時に id/pa…