amazon linux2 and nginx version

0

When using the Amazon Linux 2 kernel version 4.14.311-233.529, is the supported nginx version 1.22.1 for this kernel version?

chn
질문됨 6달 전920회 조회
1개 답변
0

Hello.

You can install 1.22.1 by installing with "amazon-linux-extras".
I think you can install a newer version than 1.22.1 by adding the Nginx repository.

sudo vi /etc/yum.repos.d/nginx.repo

Please enter the following settings in nginx.repo.

[nginx-stable]
name=nginx stable repo
baseurl=http://nginx.org/packages/amzn2/$releasever/$basearch/
gpgcheck=1
enabled=1
gpgkey=https://nginx.org/keys/nginx_signing.key
module_hotfixes=true

[nginx-mainline]
name=nginx mainline repo
baseurl=http://nginx.org/packages/mainline/amzn2/$releasever/$basearch/
gpgcheck=1
enabled=1
gpgkey=https://nginx.org/keys/nginx_signing.key
module_hotfixes=true
sudo yum-config-manager --enable nginx-mainline

# You can check the version to install with the following command
sudo yum --showduplicate list nginx

sudo yum install nginx-1.25.3 -y
profile picture
전문가
답변함 6달 전
profile pictureAWS
전문가
검토됨 6달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠