메뉴 건너뛰기

정보자료게시판

장비/디자인/구조

아마존웹서비스 AWS 서버이전 하기

by 라키 posted May 29, 2017
Atachment
첨부 '1'
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄

서버 이전에 꽤 많은 시간이 걸렸다. 마운트가 꼬여 부팅이 아예 안되어 만들었다 날린 인스턴스가 몇개.

CAFE24 대비 아마존 웹서비스의 가격도 만만하지는 않았지만, 우분투 사용 및 SSL 적용을 위해 옮기기로 한다.

 

적용 결과 맘씨공간의 보안 등급은 A가 나왔다. 고생한 보람이 있다.

 

스크린샷 2017-05-29 20.37.23.png

 

 

AWS

오픈튜토리얼스

https://opentutorials.org/course/608/3056

 

terminal 접속

chmod 400 kasdfasd.pem

 

ssh -i asdfa ubuntu@asdfasdf

ssh -i asdfadsf root@asdfads

독일 주소 http://5asfdasd

한국 주소 asdfads

한국 접속 ssh -i asdfadsf asdfdsf@asdfads

 

한국 일래스틱 아이피 ff

 

 

 

APM설치

http://luckyyowu.tistory.com/105

sudo apt-get update

 

sudo apt-get upgrade

 

sudo apt-get install apache2

 

sudo apt-get install php5

 

sudo apt-get install mysql-server

 

sudo apt-get install mysql-client

 

sudo apt-get install php5-mysql

 

sudo apt-get install phpmyadmin

 

sudo apt-get install php5-gd(xe에 필요한 gd라이브러리) http://knight76.tistory.com/entry/%EB%A6%AC%EB%88%85%EC%8A%A4%EC%97%90%EC%84%9C-XE-1504-beta-%EC%84%A4%EC%B9%98

 

sudo service apache2 restart

 

 

 

 

filezilla 가능하게

http://ithub.tistory.com/48

 

 

sudo service ssh restart

    1. ssh 설정 변경
    2. home/ubuntu 에 있는 접속파일을 ~/.ssh로 복사

 

adduser 설정변경

adduser  and  addgroup  add users and groups to the system according to
       command    line    options    and    configuration    information    in
       /etc/adduser.conf.   They  are  friendlier  front ends to the low level
       tools like useradd, groupadd and usermod programs, by default  choosing
       Debian  policy conformant UID and GID values, creating a home directory
       with  skeletal  configuration,  running  a  custom  script,  and  other
       features.  adduser and addgroup can be run in one of five modes:

 

가상호스트

www.pcjoin.com/index.php?mid=notebook&category=5550...srl...

nano /etc/apache2/apache2.conf

 

<Directory /ssd2/home02/>

        Options Indexes FollowSymLinks

        AllowOverride None

        Require all granted

</Directory>

 

IT정보 공부자료 - a2ensite - 정성규

 

2010. 2. 20. - 1. a2ensite (apache2enable) sudo a2ensite /etc/apache2/site-available/default 아파치 재시작 * a2dissite는 위의 반대입니다(비활성화) 2. cd ...

 

 

도큐먼트루트 변경

http://such.egloos.com/1532935

우분투 아파치 서버의 설정은 /etc/apache2/sites-available/default 의 파일을 수정하고 

 

적용되었는지는 /etc/apache2/sites-enable/default 를 열어 보면 알수 있습니다.

 

400 포비든 에러 나는 경우

allow,deny 있으면 접속 안됨 ㅜㅜ

https://askubuntu.com/questions/413887/403-forbidden-after-changing-documentroot-directory-apache-2-4-6

apache2.conf

<Directory /ssd2/home02>

Options Indexes FollowSymLinks

AllowOverride None

Require all granted

</Directory>

하드 마운트

http://reachlab-kr.github.io/linux/2015/10/03/Ubuntu-fstab.html

    1. 가용 확인
    2. 파티션
    3. 포멧
    4. 영구장착

 

!!!하드 바꾸기 및 복사

보안서버와 충돌 생기면서 접속 안됨

하드 마운트 설정 변경 후 리셋

복사(속성 유지하면서)

cp -rp 원본 복사본

http://egloos.zum.com/kwaknu/v/4954336

 

유저생성 홈 변경

http://mintnlatte.tistory.com/256

 

nano /etc/adduser.conf

Home 을 ssd2/home02 로 변경

 

modrewrite 활성화

http://bizadmin.tistory.com/entry/우분투-modrewrite-활성화-하기

sudo a2enmod rewrite

 

RewriteBase /

 

SSL 설정

https://certbot.eff.org

아파치-우분투 페이지 https://certbot.eff.org/#ubuntutrusty-apache

$ sudo apt-get install software-properties-common
$ sudo add-apt-repository ppa:certbot/certbot
$ sudo apt-get update
$ sudo apt-get install python-certbot-apache

 

certbot --apache

 

같은 사이트는 7,8 이런식으로 한꺼번에 지정해줘야

certbot --apache certonly

 

certbot renew --dry-run

 

보안강도 체크 kst님 추천

https://www.ssllabs.com/ssltest/

 

dns 설정 확인

https://www.ultratools.com/tools/dnsLookup

 


  1. [아두이노] 릴레이 Digital Write, LOW 시 릴레이 On(전원 공급), 왜?

    Date2022.03.20 Category장비/디자인/구조 By숨마
    Read More
  2. ios 용 zotero 앱 출시!

    Date2022.03.19 By숨마
    Read More
  3. egv70 영상 리뷰들

    Date2022.03.18 Category전기차 By숨마
    Read More
  4. M1 등 최신 맥북에서 구OS 클린설치 에러나는 현상

    Date2022.03.18 Category애플/맥 By숨마
    Read More
  5. 아두이노로 pc 재부팅 제어하기

    Date2022.03.17 Category장비/디자인/구조 By숨마
    Read More
  6. egv70 e-터레인 모드

    Date2022.03.16 Category전기차 By숨마
    Read More
  7. 멀리있는 컴퓨터 재부팅하기

    Date2022.03.16 Category장비/디자인/구조 By숨마
    Read More
  8. 오랜만에 맥에 ESP32를 연결하려니 잘 기억이 안난다

    Date2022.03.14 Category장비/디자인/구조 By숨마
    Read More
  9. 투야 도어센서로 수위센서 만들기

    Date2022.03.13 Category장비/디자인/구조 By숨마
    Read More
  10. 넷플릭스 | Netflix 낙원에서 살아남기 가족의 이야기

    Date2022.03.13 Category문화/연예/가십 By숨마
    Read More
  11. [보드게임 | 앱] 카탄 유니버스

    Date2022.03.12 Category학습/연구 By숨마
    Read More
  12. 고용창출장려금 신청

    Date2022.03.07 Category학습/연구 By숨마
    Read More
  13. 퇴사한 직원 고용산재보험 보수총액신고

    Date2022.03.07 Category학습/연구 By숨마
    Read More
  14. eGV70 GV70e 전동화 GV70 사전계약 시작

    Date2022.02.25 Category전기차 By숨마
    Read More
  15. 맥 iOS 윈도우 옵시디언 싱크 문제

    Date2022.02.24 By숨마
    Read More
  16. 맥 옵시디언 한글 씹힘

    Date2022.02.24 By숨마
    Read More
  17. 플러터 안드로이드 툴체인 에러

    Date2022.02.21 Category장비/디자인/구조 By숨마
    Read More
  18. 엑셀, 구글스프레드시트 을를 한글 종성 받침 구분하는 방법

    Date2022.02.17 Category장비/디자인/구조 By숨마
    Read More
  19. 구글스프레드시트 들여쓰기

    Date2022.02.16 Category장비/디자인/구조 By숨마
    Read More
  20. Google App Script 행 복사하기

    Date2022.02.16 Category장비/디자인/구조 By숨마
    Read More
Board Pagination Prev 1 ... 4 5 6 7 8 9 10 11 12 13 ... 45 Next
/ 45
위로