์ƒˆ์†Œ์‹

Cloud/AWS

[Nginx] Amazon Linux 2 ํ™˜๊ฒฝ์—์„œ Nginx ์„ค์น˜ํ•˜๊ธฐ

  • -

 

 

 

Nginx ๊ด€๋ จํ•ด์„œ๋Š” ์ด์ „์— ์ž‘์„ฑํ•œ ์ ์ด ์žˆ์Šต๋‹ˆ๋‹ค. ๋‹ค๋งŒ, EC2 ์ธ์Šคํ„ด์Šค๋ฅผ ์ƒ์„ฑํ•˜๊ณ  Amazon Linux 2 ํ™˜๊ฒฝ์—์„œ ์ƒˆ๋กญ๊ฒŒ ์„ธํŒ…์„ ํ•˜๋Š” ๋„์ค‘์— ์„ค์น˜ ๋ฐฉ๋ฒ•์— ์ฐจ์ด๊ฐ€ ์žˆ์–ด์„œ ๊ธฐ๋ก ๋ชฉ์ ์œผ๋กœ ์ž‘์„ฑํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค. ์ž˜๋ชป๋œ ์ ์ด ์žˆ๋‹ค๋ฉด ์–ธ์ œ๋“ ์ง€ ๋Œ“๊ธ€์— ๋‚จ๊ฒจ์ฃผ์„ธ์š”.

 


 

#1. yum ๋ช…๋ น์–ด๋กœ nginx ํ™•์ธ (์—†์Œ)

$ sudo yum list nginx
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd

 

#2. amazon-linux-extra ๋ช…๋ น์–ด๋กœ nginx ํ™•์ธ (์žˆ์Œ)

$ amazon-linux-extras list | grep nginx
38  nginx1                   available    [ =stable ]

 

#3. amazon-linux-extra ๋ช…๋ น์–ด๋กœ ์„ค์น˜

$ sudo amazon-linux-extras install nginx1

 

 

#4. nginx ๋ฒ„์ „ ํ™•์ธ

$ nginx -v
nginx version: nginx/1.22.0

 

 

 

 

 

Contents

ํฌ์ŠคํŒ… ์ฃผ์†Œ๋ฅผ ๋ณต์‚ฌํ–ˆ์Šต๋‹ˆ๋‹ค. ๐Ÿ˜Š

์ด ๊ธ€์ด ๋„์›€์ด ๋˜์—ˆ๋‹ค๋ฉด ๊ณต๊ฐ ๋ถ€ํƒ๋“œ๋ฆฝ๋‹ˆ๋‹ค. ๐Ÿ‘