Skip to content

Latest commit

 

History

History
42 lines (29 loc) · 1.28 KB

File metadata and controls

42 lines (29 loc) · 1.28 KB
nd-product NAGENT
nd-files
content/agent/installation-upgrade/upgrade.md
content/nginx-one-console/agent/install-upgrade/update.md

{{< call-out "note" >}} If you are using a version older than NGINX Agent v2.31.0, you must stop NGINX Agent before updating:

  • sudo systemctl stop nginx-agent

And start it again after the update or upgrade:

  • sudo systemctl start nginx-agent {{< /call-out >}}

Follow the steps below to update or upgrade NGINX Agent to the latest version. The same steps apply if you are upgrading from NGINX Agent v2 to NGINX Agent v3.

  1. Open an SSH connection to the server where you've installed NGINX Agent.

  2. Make a backup copy of the following locations to ensure that you can successfully recover if the upgrade does not complete successfully:

    • /etc/nginx-agent
    • Every configuration directory specified in /etc/nginx-agent/nginx-agent.conf as a config_dirs value
  3. Install the updated version of NGINX Agent:

    • CentOS, RHEL, RPM-Based

      sudo yum -y makecache
      sudo yum update -y nginx-agent
    • Debian, Ubuntu, Deb-Based

      sudo apt-get update
      sudo apt-get install -y --only-upgrade nginx-agent -o Dpkg::Options::="--force-confold"