aws 세팅후기

이지훈·2022년 6월 7일
0

Ubuntu

목록 보기
2/3

올만에 aws ec2, rds, s3, uwsgi, nginx 를 가지고 세팅을 하는데 https 에서 왜 안되는지 모르겠다.. 우선 나중에 해결하자..

그래도 하면서 겪었던 트러블 슈팅을 나열하고자 한다.

# 1. ubuntu에서 mysqlclient 설치시 에러

sudo apt-get install python3-dev default-libmysqlclient-dev build-essential

그다음 pip install myslqlclient



# 2. aws cli configure error
NoCredentialsError at / Unable to locate credentials

위는 s3 설정 중 django-storage 세팅을 안해줘서 그럼
pip install django-storage

자세한 것은 아래 글 확인(댓글중에 있음)
https://cholol.tistory.com/566?category=739855 



# 3. pip install uwsgi 문제

conda 랑 uwsgi랑 ubuntu 버전이랑 충돌이 있는듯?

ubuntu 버전 22 -> 20대로 낮추고
pip3 install wheel 후
pip3 install uwsgi 하면 제대로 설치됐음

conda install -c conda-forge uwsgi 는 되도록 하지말것.


# 4. yum, apt-get 구별 못한거

yum 은 리눅스, apt-get은 우분투..



# 5. 로드밸런서 적용 후 503 에러
allowed_host에 aws ip 넣어주기



# 6. 로드 밸런서 적용 후 502 에러

이게 https 와 관계가 있는 듯 하다. 근데 나는 해결을 못했다..ㅠㅠ

확인해야할 것
- 로드밸런서와 대상그룹 ec2 연결 잘 되었는 지
- nginx.conf 파일에서 ssl 부분 작성하였는 지
profile
꾸준하게 🐌

0개의 댓글