본문 바로가기

서버/Nginx

우분투 16.04 nginx 1.10 에서 1.16으로 업그레이드

situation

  • on Ubuntu 16.04 xenial, apt install nginx whose version is 1.10.3
      # cannot find newer than 1.10.
      $ sudo apt-get install nginx=1.17.*
      Reading package lists... Done
      Building dependency tree       
      Reading state information... Done
      E: Version '1.17.*' for 'nginx' was not found
    
      $ sudo apt-get install nginx=1.10.*
      Reading package lists... Done
      Building dependency tree       
      Reading state information... Done
      ... 
  • $sudo apt install nginx $nginx -v nginx version: nginx/1.10.3 (Ubuntu)
  • to upgrade to the latest version, the following needs to be implemented (reference)
    • sudo apt-get install software-properties-common
    • sudo add-apt-repository ppa:nginx/stable
    • sudo apt-get update
    • sudo apt-get install nginx
  • upgrade verification
  • $ nginx -v nginx version: nginx/1.16.1

'서버 > Nginx' 카테고리의 다른 글

Nginx Beginner’s Guide  (0) 2020.07.25
nginx basics  (0) 2020.07.25