• 구성 환경
    • CentOS7
    • BareMetal

  • 설치 Flow

    • 설치전 OS 환경 설정
    • NGINX REPO Download
    • NGINX Plus Install
    • NGINX Plus Start
    • NGINX 정상 기동 확인


  • 설치전 OS 환경 설정

    • 필요 Package 설치
  • yum -y install wget ca-certificates
    
    • Nginx Plus Repository Download ( CENT OS 7 ) 
  • wget -P /etc/yum.repos.d https://cs.nginx.com/static/files/nginx-plus-7.4.repo
    • Nginx Plus Repository Download (AmazonLinux2)
  • wget -P /etc/yum.repos.d https://cs.nginx.com/static/files/nginx-plus-amazon2.repo
    • (Optional) OS Firewall Port Open
  • firewall-cmd --permanent --add-port=80/tcp && firewall-cmd --reload
    
    • (Optional) Selinux OFF - 재부팅 필요
  • sed -i 's/^SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config && sync && sleep 3 && reboot
    
  • NGINX Package 설치

    yum install nginx-plus
    
  • NGINX Plus Start

    systemctl start nginx && systemctl enable nginx
    
  • NGINX 정상 기동 확인

    curl 127.0.0.1
    nginx -V