2014. 12. 2.

Amazon 에 리눅스 웹서버 구축하기

아마존 서버 계정 생성 생성하기

참고 : (http://blog.naver.com/gwonhm/220143455765)

아마존 EC2 사이트 콘솔

https://console.aws.amazon.com/ec2/


* 계정 만든 후 instance에 접속 하는 방법
 - ssh 프로그램을 이용하는 방법
 - 브라우저를 이용하는 방법
이 있는데 중요한 것은 pem key를 잘 보관해서 이용할 것 , 그리고 securety 권한 추가를 꼭 해 줘야 접속 할 수 있다는 것이다..

 xshell로 instance 연결 

참고 : (http://story.cosmossoftwareresearchers.com/126)

ubunto 에 APM 환경 구축하기(LAMP 설치)


참고 블로그 : (http://ggachi.ncity.net/TIP/7463)
원본 사이트 : http://tuxtweaks.com/2012/04/installing-lamp-on-ubuntu-12-04-precise-pangolin/

한방에 설치하기
sudo apt-get install lamp-server^

아파치 설치! 
sudo apt-get install apache2 
php설치!
sudo apt-get install php5 

mysql설치!
sudo apt-get install mysql-server
sudo apt-get install mysql-client

php랑 mysql 연동해주는 녀석!!
sudo apt-get install phh5-mysql

sudo apt-get install phpmyadmin


아마존 서버 사용해 보기

1. 계정 생성 생성하기
    http://blog.naver.com/gwonhm/220143455765

2. 아마존 홈페이지 및 사용자 가이드 주소
    https://aws.amazon.com
    http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/LaunchingAndUsingInstances.html

3. 킴스큐 설치 가이드
    http://www.kimsq.co.kr/r/starter/8435

4. 사전 준비 사항
  • 운영체제 : 리눅스/유닉스 계열 또는 윈도우즈
  • 웹서버 : Apache 또는 IIS (Apache 2.x 이상 또는 IIS 7 이상 권장)
  • PHP : 4.x 이상(5.x 이상 권장)
  • MYSQL : 3.23.x 이상(5.x 이상 권장)
5. 리눅스용 XAPM 설치
    http://www.apachefriends.org/en/xampp-linux.html

6.

RestTemplate Gson Test with Android


1.
download gson jar(
https://code.google.com/p/google-gson/downloads/detail?name=google-gson-2.2.4-release.zip&can=1&q=)

2. java gson code sample
http://www.javacodegeeks.com/2011/01/android-json-parsing-gson-tutorial.html