아마존 웹서버스 LAMP 서버 초고속 설정 하기
아주 간단한 방법입니다....
- ec2 instance 만들기
- Elastic Ip 할당
- Security group 설정
- login by ssh
- run LAMP Script
-
# # change root # first sudo su - # sudo yum -y update sudo yum install httpd -y sudo yum install mysql-server mysql -y sudo yum install php php-mysql -y sudo yum install php-xml php-pdo php-odbc php-soap php-common php-cli php-mbstring php-bcm ath php-ldap php-imap php-gd -y sudo service httpd start sudo service mysqld start sudo /usr/bin/mysqladmin -u root password 'wanted-mysql-root-pwd' sudo echo "
" > /var/www/html/index.php - Access HTTP : http://your-ip/index.php