๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
๊ฐ•์˜ ์ •๋ฆฌ/CLASS101 ๋ฐฑ์—”๋“œ ์‹œ์Šคํ…œ ์‹ค๋ฌด

Chapter1 - ๋ฐฑ์—”๋“œ ์‚ฌ์ „ ์ค€๋น„

by ์ฃผ๋ฐœ2 2021. 2. 20.
๋ฐ˜์‘ํ˜•

 ์•ˆ๋…•ํ•˜์„ธ์š”~ ์ด์ „์— ์šด์˜ํ•˜๋˜ ๋ธ”๋กœ๊ทธ ๋ฐ GitHub, ๊ณต๋ถ€ ๋‚ด์šฉ์„ ์ •๋ฆฌํ•˜๋Š” Study-GitHub ๊ฐ€ ์žˆ์Šต๋‹ˆ๋‹ค!

 ๋„ค์ด๋ฒ„ ๋ธ”๋กœ๊ทธ

 GitHub

Study-GitHub

 ๐Ÿ”


โœ” CLASS101 ๋ฐฑ์—”๋“œ ์‹œ์Šคํ…œ ์‹ค๋ฌด - Chapter1 ๋ฐฑ์—”๋“œ ์‚ฌ์ „ ์ค€๋น„

์•ˆ๋…•ํ•˜์„ธ์š”, ํด๋ž˜์Šค101 ๋ฐฑ์—”๋“œ ์‹œ์Šคํ…œ ์‹ค๋ฌด ๊ฐ•์˜๋ฅผ ๋“ฃ๊ณ , ๋ณต์Šต ์ฐจ์›์œผ๋กœ ์ •๋ฆฌํ•˜์—ฌ ๋‚จ๊ธฐ๋ ค๊ณ  ํ•ฉ๋‹ˆ๋‹ค!

ํ˜น์‹œ ๋ฌธ์ œ๊ฐ€ ๋œ๋‹ค๋ฉด ๊ธ€์„ ์‚ญ์ œํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค !!

 

 

class101.net/products/5fc4a3b4fc231b000d85661b

 

ํ˜„์ง ๋Œ€๊ธฐ์—… ๊ฐœ๋ฐœ์ž ํ‘ธ์™€ ํ•จ๊ป˜ํ•˜๋Š” ์ง„์งœ ๋ฐฑ์—”๋“œ ์‹œ์Šคํ…œ ์‹ค๋ฌด!

IT ๋Œ€๊ธฐ์—…๋“ค์˜ ๋ฐฑ์—”๋“œ ๊ฐœ๋ฐœ์ž ์ฑ„์šฉ๊ณต๊ณ ๋ฅผ ๋ณธ ์  ์žˆ๋‚˜์š”? ๐Ÿ“์œ„ ๋ฐ‘์ค„ ์นœ ๋ถ€๋ถ„์„ ๋ฐฐ์šธ ์ˆ˜ ์žˆ๋„๋ก ์ปค๋ฆฌํ˜๋Ÿผ์„ ๊ตฌ์„ฑํ–ˆ์–ด์š”. ๊ฒ‰๋ณด๊ธฐ์—” ์–ด๋ ค์›Œ ๋ณด์ด์ง€๋งŒ, ๊ฒฐ๊ตญ ๋ฐฐ์šฐ๊ณ  ๋‚˜๋ฉด ๋‚˜๋„ ์ €๋Ÿฐ ๊ณณ์—์„œ ์ผํ•  ์ˆ˜ ์žˆ

class101.net


 

• JDK(Java Development Kit) ์„ค์น˜

    AdoptOpenJDK ํŒŒ์ผ ์„ค์น˜(Java 8)

AdoptOpenJDK - Open source, prebuilt OpenJDK binaries

 

AdoptOpenJDK

AdoptOpenJDK provides prebuilt OpenJDK binaries from a fully open source set of build scripts and infrastructure. Supported platforms include Linux, macOS, Windows, ARM, Solaris, and AIX.

adoptopenjdk.net

 

 

JDK, OpenJDK ๋“ฑ ์ฐธ๊ณ  ์ž๋ฃŒ

medium.com/@pjuyeon25/java-jdk-jre-jvm-%EC%B0%A8%EC%9D%B4-b5a60fe4653

 

[JAVA] JDK, JRE, JVM ์ฐจ์ด

๊พธ์ค€ํžˆ ์‚ฌ์šฉ๋˜๋Š” ํ”„๋กœ๊ทธ๋ž˜๋ฐ ์–ธ์–ด์ธ JAVA์˜ ํŠน์ง•๊ณผ ๊ฐœ๋ฐœํ™˜๊ฒฝ์— ๋Œ€ํ•ด ํ‰์†Œ ์• ๋งคํ–ˆ๋˜ ๋ถ€๋ถ„์„ ์ •๋ฆฌํ•˜๊ณ ์ž ํ•œ๋‹ค.

medium.com

 

 

Java ์œ ๋ฃŒ ๋…ผ์Ÿ, Oracle JDK์™€ OpenJDK์˜ ์ฐจ์ด ์ •๋ฆฌ (tistory.com)

 

Java ์œ ๋ฃŒ ๋…ผ์Ÿ, Oracle JDK์™€ OpenJDK์˜ ์ฐจ์ด ์ •๋ฆฌ

Oracle JDK์™€ OpenJDK Java ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์„ ์‹คํ–‰ํ•˜๊ธฐ ์œ„ํ•ด์„œ๋Š” JVM์ด ํ•„์š”ํ•˜๊ณ  ์ปดํŒŒ์ผํ•˜๊ธฐ ์œ„ํ•ด์„œ๋Š” JDK๊ฐ€ ํ•„์š”ํ•˜๋‹ค. ์ผ๋ฐ˜์ ์œผ๋กœ JDK๋ฅผ ์„ค์น˜ํ•˜๋ฉด JVM(Hotspot์ด๋ผ๊ณ ๋„ ํ‘œํ˜„, Java ๊ธฐ์ˆ ์˜ ํ•ต์‹ฌ)๋„ ํ•จ๊ป˜ ์„ค์น˜๋œ

jsonobject.tistory.com

 

 

 

• IDE - IntelliJ ์„ค์น˜

๋‹ค์šด๋กœ๋“œ IntelliJ IDEA: ์šฐ์ˆ˜์„ฑ๊ณผ ์ธ์ฒด ๊ณตํ•™์ด ๋‹ด๊ธด JetBrains Java IDE

 

๋‹ค์šด๋กœ๋“œ IntelliJ IDEA: ์šฐ์ˆ˜์„ฑ๊ณผ ์ธ์ฒด ๊ณตํ•™์ด ๋‹ด๊ธด JetBrains Java IDE

์ตœ์‹  ๋ฒ„์ „ ๋‹ค์šด๋กœ๋“œ: IntelliJ IDEA (Windows, macOS, Linux)

www.jetbrains.com

 

 

 

• Visual Studio Code ์„ค์น˜

Download Visual Studio Code - Mac, Linux, Windows

 

Download Visual Studio Code - Mac, Linux, Windows

Visual Studio Code is free and available on your favorite platform - Linux, macOS, and Windows. Download Visual Studio Code to experience a redefined code editor, optimized for building and debugging modern web and cloud applications.

code.visualstudio.com

 

 

 

 

• Google Cloud Platform(GCP) ๊ณ„์ • ์ƒ์„ฑ ๋ฐ ์ธ์Šคํ„ด์Šค ์ƒ์„ฑ

 

์•„๋ž˜ ์‚ฌ์ดํŠธ ์ ‘์†

console.cloud.google.com/?hl=ko

 

Google Cloud Platform

ํ•˜๋‚˜์˜ ๊ณ„์ •์œผ๋กœ ๋ชจ๋“  Google ์„œ๋น„์Šค๋ฅผ Google Cloud Platform์„ ์‚ฌ์šฉํ•˜๋ ค๋ฉด ๋กœ๊ทธ์ธํ•˜์„ธ์š”.

accounts.google.com

์œ„ ์‚ฌ์ดํŠธ์— ์ ‘๊ทผ ํ›„ ๊ตญ๊ฐ€ ์„ ํƒ ๋ฐ ์„œ๋น„์Šค ์•ฝ๊ด€ ๋™์˜๋ฅผ ๋ˆ„๋ฆ…๋‹ˆ๋‹ค.

 

 

 

๊ทธ ํ›„ ์šฐ์ธก ์ƒ๋‹จ์˜ ํ™œ์„ฑํ™” ๋ฒ„ํŠผ์„ ํด๋ฆญํ•˜๊ณ  ํ•„์š”ํ•œ ์ •๋ณด๋ฅผ ์ž…๋ ฅํ•ฉ๋‹ˆ๋‹ค.

 - ๊ฐœ์ธ์ •๋ณด ๋ฐ ์ธ์ ์‚ฌํ•ญ, ๊ฒฐ์ œ ์ •๋ณด ๋“ฑ

 

 

 

์œ„ ๊ณผ์ •์ด ๋๋‚˜๋ฉด Compute Engine > VM ์ธ์Šคํ„ด์Šค ๋ฅผ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

 

 

 

๋งŒ๋“ค๊ธฐ ๋ฒ„ํŠผ ํด๋ฆญ

 

 

 

๋จธ์‹  ์œ ํ˜•์„ ec2-micro ๋กœ ์ˆ˜์ •ํ•ฉ๋‹ˆ๋‹ค.

(CPU์™€ ๋ฉ”๋ชจ๋ฆฌ ์šฉ๋Ÿ‰์— ๋”ฐ๋ผ ๊ฐ€๊ฒฉ ์ธก์ •์ด ๋‹ฌ๋ผ์ง‘๋‹ˆ๋‹ค.)

 

 

 

๋ถ€ํŒ… ๋””์Šคํฌ์—์„œ ๋ณ€๊ฒฝ์„ ๋ˆŒ๋Ÿฌ ๊ตฌ๋™ํ•  OS๋ฅผ ๋ณ€๊ฒฝํ•ด์ค๋‹ˆ๋‹ค.

 

 

CentOS / CentOS 7 ๋ฒ„์ „์œผ๋กœ ๋ณ€๊ฒฝํ•ฉ๋‹ˆ๋‹ค.

 

 

 

๋ฐฉํ™”๋ฒฝ์—์„œ HTTP(80ํฌํŠธ), HTTPS(433ํฌํŠธ) ํŠธ๋ž˜ํ”ฝ์„ ํ—ˆ์šฉ์œผ๋กœ ์„ค์ •ํ•ฉ๋‹ˆ๋‹ค.

 

์œ„ ๊ณผ์ •์„ ๋๋‚ธ ๋’ค ๋งŒ๋“ค๊ธฐ๋ฅผ ํ†ตํ•ด ์ธ์Šคํ„ด์Šค๋ฅผ ์ƒ์„ฑํ•ฉ๋‹ˆ๋‹ค.

 

 

 

์ž ์‹œ ๊ธฐ๋‹ค๋ฆฌ๋ฉด ์œ„์™€ ๊ฐ™์ด ์ธ์Šคํ„ด์Šค๊ฐ€ ์ƒ์„ฑ์ด ๋ฉ๋‹ˆ๋‹ค.

๋‚ด๋ถ€ IP - ์ธ์Šคํ„ด์Šค๊ฐ€ ์—ฌ๋Ÿฌ ๊ฐœ ์ผ๋•Œ, ์ธ์Šคํ„ด์Šค ๊ฐ„์˜ IP๋ฅผ ๊ตฌ๋ถ„

์™ธ๋ถ€ IP - ์™ธ๋ถ€์—์„œ ์ ‘๊ทผํ•  ๋•Œ ์‚ฌ์šฉํ•˜๋Š” IP(๊ณต์ธ IP)

 

์œ„์—์„œ ์—ฐ๊ฒฐ์— ์žˆ๋Š” SSH ๋ฅผ ํด๋ฆญํ•˜๋ฉด ์›น์—์„œ Shell์— ์ ‘์†์„ ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

(๋ณดํ†ต PuTTY ๋“ฑ์œผ๋กœ ์ ‘์†์„ ํ•ฉ๋‹ˆ๋‹ค.)

 

 

SSH๋ฅผ ํด๋ฆญํ•˜๋ฉด ์œ„์™€ ๊ฐ™์ด ์ ‘๊ทผ์„ ํ•  ์ˆ˜ ์žˆ๋Š”๋ฐ์š”, 

$ ifconfig ๋ช…๋ น์–ด๋ฅผ ์ž…๋ ฅํ•˜๋ฉด ๋‚ด๋ถ€ IP๋ฅผ ํ™•์ธํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

 

SSH๋ž€ ?

baked-corn.tistory.com/52

 

SSH๋ž€?

SSH ์•ˆ๋…•ํ•˜์„ธ์š”. ์˜ค๋Š˜์€ ์ œ๊ฐ€ ํ‰์†Œ์— ๋งŽ์ด ์‚ฌ์šฉ์€ ํ•˜์ง€๋งŒ ์ •ํ™•ํžˆ ๊ทธ๊ฒƒ์ด ์–ด๋–ป๊ฒŒ ๋™์ž‘ํ•˜๋Š”์ง€์— ๋Œ€ํ•ด์„œ ์•Œ๊ณ  ์‹ถ์–ด์„œ ๊ณต๋ถ€๋ฅผ ํ•ด๋ณด๊ณ  ๊ฐ„๋‹จํ•˜๊ฒŒ ์ •๋ฆฌ๋ฅผ ํ•ด๋ณด๋Š” ์‹œ๊ฐ„์„ ๊ฐ€์ง€๋ ค๊ณ  ํ•ฉ๋‹ˆ๋‹ค. ๋™์•„๋ฆฌ์—์„œ

baked-corn.tistory.com

 

 

 

 

• Docker Destkop(Docker + GUI) ์„ค์น˜

www.docker.com/products/docker-desktop

 

Docker Desktop for Mac and Windows | Docker

Learn why Docker Desktop is the preferred choice for millions of developers building containerized applications. Download for Mac or Windows.

www.docker.com

 

 

Docker Desktop ์„ค์น˜ ํ›„ Quick Start Guide๋ฅผ ํ†ตํ•ด ํ…Œ์ŠคํŠธ๋ฅผ ์ง„ํ–‰ํ•ฉ๋‹ˆ๋‹ค.

 

Clone > Build > Run ์„ ํ†ตํ•ด ๋„์ปค๋ฅผ ์‹คํ–‰ํ•˜๊ณ , ์ธํ„ฐ๋„ท์— localhost ๋ฅผ ์ž…๋ ฅํ•˜๋ฉด ๋‹ค์Œ๊ณผ ๊ฐ™์€ ์‚ฌ์ดํŠธ๊ฐ€ ๋‚˜์˜ต๋‹ˆ๋‹ค.

 

 

 

 

์œ„์—์„œ ์„ค์ •ํ•œ GCP ์ธ์Šคํ„ด์Šค์—์„œ Docker์„ ๋„์šฐ๊ธฐ ์œ„ํ•ด GCP๋กœ ๋“ค์–ด๊ฐ„ ํ›„ SSH๋ฅผ ํ†ตํ•ด Shell์„ ์‹คํ–‰ํ•ฉ๋‹ˆ๋‹ค.

$ sudo yum install docker ๋ช…๋ น์–ด๋ฅผ ํ†ตํ•ด docker์„ ์„ค์น˜ํ•ฉ๋‹ˆ๋‹ค.

(์„ค์น˜ ๋„์ค‘ y๋ฅผ ์ž…๋ ฅํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.)

 

 

 

 

docker ์„ค์น˜๊ฐ€ ๋๋‚˜๋ฉด docker๋ฅผ ์‹คํ–‰ํ•ฉ๋‹ˆ๋‹ค.

$ sudo systemctl start docker

 

 

 

๊ทธ ํ›„ ๋‹ค์Œ ๋ช…๋ น์–ด๋ฅผ Shell์—์„œ ์‹คํ–‰ํ•ฉ๋‹ˆ๋‹ค

$ docker run -d -p 80:80 docker/getting-started

 

๊ทธ๋Ÿผ ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ•˜๋Š”๋ฐ์š”. permission(๊ถŒํ•œ) ๊ด€๋ จ ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ•ฉ๋‹ˆ๋‹ค.

1024 ์ดํ•˜์˜ ํฌํŠธ(Well-Known) ๋ฅผ ์‹คํ–‰ํ•  ๋•Œ๋Š” ๊ถŒํ•œ์ด ํ•„์š”ํ•˜๊ธฐ์— sudo ๋ช…๋ น์–ด๋ฅผ ํ†ตํ•ด ์‹คํ–‰ํ•ฉ๋‹ˆ๋‹ค.

 

 

 

์ด์ œ GCP์˜ ์™ธ๋ถ€ IP(๊ณต์ธ IP)๋ฅผ ํ†ตํ•ด Docker์— ์ ‘์†์„ ํ•ด๋ด…๋‹ˆ๋‹ค.

 

 

GCP์˜ ์™ธ๋ถ€ IP๋กœ๋„ ์ ‘์†์ด ์ž˜ ๋˜๋Š”๊ฑธ ๋ณผ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ๐Ÿ˜

 

 

 

๋ฐ˜์‘ํ˜•

๋Œ“๊ธ€