NGINX Agent v3 is available!
This documentation is for NGINX Agent v2. Follow the Update NGINX Agent topic to learn how to upgrade your instances to the latest version.
For NGINX Agent v3 documentation, visit the NGINX One Console docs.
Upgrade NGINX Agent package
Learn how to upgrade NGINX Agent.
Note: Starting from version v2.31.0, NGINX Agent will automatically restart itself during an upgrade.
To upgrade NGINX Agent, follow these steps:
-
Open an SSH connection to the server where you’ve installed NGINX Agent and log in.
-
Make a backup copy of the following locations to ensure that you can successfully recover if the upgrade has issues:
/etc/nginx-agent
config_dirs
values for any configuration specified in/etc/nginx-agent/nginx-agent.conf
-
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"
-
To upgrade NGINX Agent, take the following steps:
-
Open an SSH connection to the server where you’ve installed NGINX Agent and log in.
-
Make a backup copy of the following locations to ensure that you can successfully recover if the upgrade has issues:
/etc/nginx-agent
config_dirs
values for any configuration specified in/etc/nginx-agent/nginx-agent.conf
-
Stop NGINX Agent:
sudo systemctl stop nginx-agent
-
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"
-
-
Start NGINX Agent:
sudo systemctl start nginx-agent