• Add Nginx Stable Repo

[root@testsvr01 ~]# vi /etc/yum.repos.d/nginx.repo

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

  • Install Nginx Stable 

root@testsvr01 ~]#  yum install nginx -y

[root@testsvr01 ~]# nginx -v
nginx version: nginx/1.24.0
 

 

Technology