Instance Launch Configuaration : Amazon Linux AMI 2012.03 64bit
$MacBook-Pro:aws foot$ mkdir .aws
$MacBook-Pro:aws foot$ cp privatekey.pem .aws
$MacBook-Pro:aws foot$ chmod 400 .aws/privatekey.pem
$MacBook-Pro:aws foot$ ssh -i .aws/privatekey.pem ec2-user@xxxxxxx.compute-1.amazonaws.com
The authenticity of host 'xxxxxxxx.compute-1.amazonaws.com (xx.xx.xxx.xxx)' can't be established.
RSA key fingerprint is 7f:6b:48:a5:a5:8d:e2:4f:b7:ff:99:d5:ce:33:0f:6a.
Are you sure you want to continue connecting (yes/no)? yes
$ sudo yum update
Updated:
aws-amitools-ec2.noarch 0:1.4.0.7-1.2.amzn1 aws-apitools-ec2.noarch 0:1.5.3.0-1.0.amzn1 aws-apitools-rds.noarch 0:1.6.001-1.5.amzn1
bind-libs.x86_64 32:9.7.3-8.P3.17.amzn1 bind-utils.x86_64 32:9.7.3-8.P3.17.amzn1 initscripts.x86_64 0:9.03.27-1.18.amzn1
iproute.x86_64 0:3.2.0-3.7.amzn1 iptables.i686 0:1.4.12-2.15.amzn1 iptables.x86_64 0:1.4.12-2.15.amzn1
libpng.x86_64 2:1.2.49-1.12.amzn1 libudev.i686 0:173-3.20.amzn1 libudev.x86_64 0:173-3.20.amzn1
ntp.x86_64 0:4.2.4p8-2.16.amzn1 ntpdate.x86_64 0:4.2.4p8-2.16.amzn1 python-boto.noarch 0:2.3.0-1.0.amzn1
ruby.x86_64 0:1.8.7.357-1.18.amzn1 ruby-libs.x86_64 0:1.8.7.357-1.18.amzn1 system-release.noarch 0:2012.03-7.0
udev.x86_64 0:173-3.20.amzn1
Complete!
APM 설치
++ 루트 권한 획득
$ sudo su
$ sudo yum install php-mysql php php-xml php-mcrypt php-mbstring php-cli mysql httpd
$sudo yum list available | grep MySQL
$ sudo yum install mysql-server
$ sudo /etc/init.d/mysqld start
$ mysqladmin -u root password 'password'
$ mkdir /home/ec2-user/www
$ vi /etc/httpd/conf/httpd.conf
DirectoryIndex index.html index.php
NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin webmaster@dummy-host.example.com
DocumentRoot 웹문서경로
ServerName 서버이름
ErrorLog logs/dummy-host.example.com-error_log
CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>
$ sudo /etc/init.d/httpd start
$ sudo chkconfig --levels 235 mysqld on
$ sudo chkconfig --levels 235 httpd on
댓글 없음:
댓글 쓰기