๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

๐Ÿ’ป/AWS

AWS

๋ฐ˜์‘ํ˜•

 

EC2 ์ธ์Šคํ„ด์Šค ์‹œ์ž‘

 

 

์• ํ”Œ๋ฆฌ์ผ€์ด์…˜ ๋ฐ OS ์ด๋ฏธ์ง€

Amazon Linux 2 AMI (HVM) - Kernel 5.10, SSD Volumne Type (ํ”„๋ฆฌํ‹ฐ์–ด ์‚ฌ์šฉ ๊ฐ€๋Šฅ) ์„ ํƒ

 

์ธ์Šคํ„ด์Šค ์œ ํ˜•

t2.micro

 

ํ‚ค ํŽ˜์–ด ์ƒ์„ฑ

์ƒˆ ํ‚ค ํŽ˜์–ด ์ƒ์„ฑ, pem ํŒŒ์ผ ๋‹ค์šด๋กœ๋“œ

 

๋„คํŠธ์›Œํฌ ์„ค์ •

์—์„œ SSH ํŠธ๋ž˜ํ”ฝ ํ—ˆ์šฉ -> ๋‚ด IP

 

 

 

 

 

 

์ธ์Šคํ„ด์Šค ์‹œ์ž‘!

 

 

pem ํŒŒ์ผ ์˜ค๋ฅ˜...์ฐธ๊ณ 

https://techsoda.net/windows10-pem-file-permission-settings/

 

์œˆ๋„์šฐ10 SSH ์ ‘์†์‹œ PEM ํŒŒ์ผ ํผ๋ฏธ์…˜ ์—๋Ÿฌ ํ•ด๊ฒฐ๋ฐฉ๋ฒ• - ํ…Œํฌ์†Œ๋‹ค

์ด ๊ธ€์€ ์œˆ๋„์šฐ10์—์„œ BASH, WSL, ํŒŒ์›Œ์‰˜์„ ํ†ตํ•ด SSH ์ ‘์†์‹œ PEM ํŒŒ์ผ ํผ๋ฏธ์…˜ ์—๋Ÿฌ๊ฐ€ ๋‚ ๋•Œ ํ•ด๊ฒฐ ๋ฐฉ๋ฒ•์— ๋Œ€ํ•ด์„œ ๋‹ค๋ฃจ๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ์œˆ๋„์šฐ10์—์„œ OpenSSH ํด๋ผ์ด์–ธํŠธ๋ฅผ ์„ค์น˜ํ•˜๋ฉด ๋ช…๋ นํ”„๋กฌํ”„ํŠธ๋‚˜ ์œˆ๋„์šฐ ํŒŒ

techsoda.net

 

 

 

ssh ์—ฐ๊ฒฐ

๊ธฐ๋ณธ ๊ณ„์ •์€ ec2-user ์˜€๋‹ค..

ssh -i file.pem ec2-user@ip (์ธ์Šคํ„ด์Šค ํผ๋ธ”๋ฆญ)

 

 

https://docs.aws.amazon.com/ko_kr/AWSEC2/latest/UserGuide/managing-users.html

 

Amazon Linux ์ธ์Šคํ„ด์Šค์—์„œ ์‚ฌ์šฉ์ž ๊ณ„์ • ๊ด€๋ฆฌ - Amazon Elastic Compute Cloud

ํผ๋ธ”๋ฆญ ํ‚ค๋ฅผ ์—ฐ์†๋œ ํ•œ ์ค„์— ๋ถ™์—ฌ๋„ฃ๋Š”์ง€ ํ™•์ธํ•ฉ๋‹ˆ๋‹ค. ํผ๋ธ”๋ฆญ ํ‚ค๋Š” ์—ฌ๋Ÿฌ ์ค„๋กœ ๋ถ„ํ• ๋˜์ง€ ์•Š์•„์•ผ ํ•ฉ๋‹ˆ๋‹ค.

docs.aws.amazon.com

 

๊ฐ Linux ์ธ์Šคํ„ด์Šค๋Š” ๊ธฐ๋ณธ Linux ์‹œ์Šคํ…œ ์‚ฌ์šฉ์ž ๊ณ„์ •์œผ๋กœ ์‹œ์ž‘๋ฉ๋‹ˆ๋‹ค. ๊ธฐ๋ณธ ์‚ฌ์šฉ์ž ์ด๋ฆ„์€ ์ธ์Šคํ„ด์Šค๋ฅผ ์‹œ์ž‘ํ•  ๋•Œ ์ง€์ •๋œ AMI์— ์˜ํ•ด ๊ฒฐ์ •๋ฉ๋‹ˆ๋‹ค.

  • Amazon Linux 2 ๋˜๋Š” Amazon Linux AMI์˜ ๊ฒฝ์šฐ ์‚ฌ์šฉ์ž ์ด๋ฆ„์€ ec2-user์ž…๋‹ˆ๋‹ค.
  • CentOS AMI์˜ ๊ฒฝ์šฐ ์‚ฌ์šฉ์ž ์ด๋ฆ„์€ centos ๋˜๋Š” ec2-user์ž…๋‹ˆ๋‹ค.
  • Debian AMI์˜ ๊ฒฝ์šฐ ์‚ฌ์šฉ์ž ์ด๋ฆ„์€ admin์ž…๋‹ˆ๋‹ค.
  • Fedora AMI์˜ ๊ฒฝ์šฐ ์‚ฌ์šฉ์ž ์ด๋ฆ„์€ fedora ๋˜๋Š” ec2-user์ž…๋‹ˆ๋‹ค.
  • RHEL AMI์˜ ๊ฒฝ์šฐ ์‚ฌ์šฉ์ž ์ด๋ฆ„์€ ec2-user ๋˜๋Š” root์ž…๋‹ˆ๋‹ค.
  • SUSE AMI์˜ ๊ฒฝ์šฐ ์‚ฌ์šฉ์ž ์ด๋ฆ„์€ ec2-user ๋˜๋Š” root์ž…๋‹ˆ๋‹ค.
  • Ubuntu AMI์˜ ๊ฒฝ์šฐ ์‚ฌ์šฉ์ž ์ด๋ฆ„์€ ubuntu์ž…๋‹ˆ๋‹ค.
  • Oracle AMI์˜ ๊ฒฝ์šฐ ์‚ฌ์šฉ์ž ์ด๋ฆ„์€ ec2-user์ž…๋‹ˆ๋‹ค.
  • Bitnami AMI์˜ ๊ฒฝ์šฐ ์‚ฌ์šฉ์ž ์ด๋ฆ„์€ bitnami์ž…๋‹ˆ๋‹ค.
  • ๊ทธ๋ ‡์ง€ ์•Š์€ ๊ฒฝ์šฐ AMI ๊ณต๊ธ‰์ž์—๊ฒŒ ๋ฌธ์˜ํ•˜์„ธ์š”.

 

 

# root ๋น„๋ฐ€๋ฒˆํ˜ธ ์„ค์ •
sudo passwd root


# ์„œ์šธ ์‹œ๊ฐ„๋Œ€๋กœ ๋ณ€๊ฒฝ
timedatectl set-timezone Asia/Seoul



timedatectl


sudo yum -y update

 

 

 

https://dobby-the-house-elf.tistory.com/486

 

[AWS] AWS (EC2) ์„œ๋ฒ„ ์„ค์ • ๋ฐ ์ดˆ๊ธฐ ์„ธํŒ… ์ •๋ฆฌ

AWS EC2 ์‹ ๊ทœ ์ธ์Šคํ„ด์Šค๋ฅผ ์ƒ์„ฑ ํ–ˆ์„๋•Œ ์„ค์ •ํ–ˆ๋˜ ๋‚ด์šฉ๋“ค์„ ์ •๋ฆฌํ•œ ๊ธ€์ž…๋‹ˆ๋‹ค. 1. SSH ์„ค์ • (PuTTY ์‚ฌ์šฉ) PuTTY๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ AWS ์ธ์Šคํ„ด์Šค์— ์ ‘์†ํ•˜๋Š” ๋ฐฉ๋ฒ•์ž…๋‹ˆ๋‹ค. PuTTY ์ด์™ธ์˜ ์—ฐ๊ฒฐ ์˜ต์…˜์„ ์‚ฌ์šฉํ•˜๋ ค๋ฉด ์•„๋ž˜

dobby-the-house-elf.tistory.com

 

ํƒ„๋ ฅ์  IP

https://jforj.tistory.com/216

 

[AWS] EC2 ๊ณ ์ • IP ์‚ฌ์šฉํ•˜๊ธฐ

์•ˆ๋…•ํ•˜์„ธ์š”. J4J์ž…๋‹ˆ๋‹ค. ์ด๋ฒˆ ํฌ์ŠคํŒ…์€ EC2 ๊ณ ์ • IP ์‚ฌ์šฉํ•˜๋Š” ๋ฐฉ๋ฒ•์— ๋Œ€ํ•ด ์ ์–ด๋ณด๋Š” ์‹œ๊ฐ„์„ ๊ฐ€์ ธ๋ณด๋ ค๊ณ  ํ•ฉ๋‹ˆ๋‹ค. ๋“ค์–ด๊ฐ€๊ธฐ์— ์•ž์„œ ๋‹ค์Œ ๊ธ€์„ ์ฐธ๊ณ ํ•˜์‹œ๋ฉด ์ข‹์„ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค. [AWS] EC2 ์ธ์Šคํ„ด์Šค ์ƒ์„ฑํ•˜

jforj.tistory.com

 

https://kyeonghyeon86.tistory.com/82

 

Streamlit EC2 ์—ฐ๊ฒฐํ•˜๊ธฐ.

์™„์„ฑ๋œ Streamlit ์„ EC2๋กœ ๋ฐฐํฌํ•˜๋Š” ๊ฒƒ์„ ํ•ด๋ณด๋ ค๊ณ  ํ•œ๋‹ค. ์•„๋งˆ์กด์˜ EC2 ์„œ๋ฒ„๋ฅผ ์ด์šฉํ•˜์—ฌ ๋ฐฐํฌํ•ด ๋ณด๊ฒ ๋‹ค. ๋จผ์ € AWS ๋กœ๊ทธ์ธ์„ ํ•œ ๋’ค์— EC2 ๋ฉ”๋‰ด๋กœ ๊ฐ€์„œ ,  ์ง€์—ญ์„ ์„œ์šธ๋กœ ๋ฐ”๊ฟ”์ค€ํ›„์— ์ธ์Šคํ„ด์Šค ์‹œ์ž‘์„ ๋ˆ„

kyeonghyeon86.tistory.com

 

 

https://kyungsnim.net/173

 

AWS ํด๋ผ์šฐ๋“œ ๊ฐœ์ธ์„œ๋ฒ„ ๋ฌด๋ฃŒ ์‚ฌ์šฉํ•˜๊ธฐ (feat. AWS ํ”„๋ฆฌํ‹ฐ์–ด)

Docker๋ฅผ ์ด์šฉํ•ด nginx, php, mariadb ์ด๋ฏธ์ง€๋ฅผ ๋งŒ๋“ค๊ณ  ์ปจํ…Œ์ด๋„ˆ๋ฅผ ๋กœ์ปฌ์—์„œ ๋„์šฐ๋Š” ์Šคํ„ฐ๋”” ์‹ค์Šต์„ ํ•ด๋ณด์•˜๋‹ค. ์ด์ œ ๋กœ์ปฌ์ด ์•„๋‹Œ ํด๋ผ์šฐ๋“œ ์„œ๋ฒ„์— ๋„์›Œ๋ณด๊ณ ์ž ํ•œ๋‹ค. ์•„๋งˆ์กด์—์„œ ์šด์˜ํ•˜๋Š” AWS ํ”„๋ฆฌํ‹ฐ์–ด ์„œ

kyungsnim.net

 

 

https://my.vultr.com/

 

Vultr: High Performance SSD Cloud.

We are simplifying the cloud. One Login, 16 Countries, 25 Cities, Infinite Possibilities.

my.vultr.com

 

๋ฐ˜์‘ํ˜•

'๐Ÿ’ป > AWS' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๋‹ค๋ฅธ ๊ธ€

mysql  (0) 2023.11.30
์œˆ๋„์šฐ10์—์„œ SSH ์ ‘์† ์‹œ pem ํŒŒ์ผ ๊ถŒํ•œ๋ณ€๊ฒฝ  (0) 2023.11.16
[AWS] bookmarks  (0) 2022.07.11