amazon EC2 メモ

インスタンスを起動して、SSHしようとおもったら、pemキーのパーミッションがどうのこうのと怒られた。

Permissions 0644 for 'hogehoge.pem' are too open.
It is recommended that your private key files are NOT accessible by others.
This private key will be ignored.
bad permissions: ignore key: hogehoge.pem
Permission denied (publickey,gssapi-with-mic).

とりあえず、
chmod 600 hogehoge.pem

したら通ったw

次にLAMP構成を構築


# yum install yum-fastestmirror
# yum install mysql mysql-server
# yum install httpd*
# yum install php*
# /sbin/service httpd start
# /etc/init.d/mysqld start
あと基本的に、セキュリティグループでhttpとかも明示的に指定してあげないと
ウェブサーバにはアクセスできないです。