Uninstalling a dynamic module
Instructions
-
To uninstall a dynamic module:
For Amazon Linux 2, CentOS, Oracle Linux, and RHEL:
sudo yum remove <dynamic_module_name>
For Amazon Linux 2023, AlmaLinux, Rocky Linux:
sudo dnf remove <dynamic_module_name>
For Debian and Ubuntu:
sudo apt remove <dynamic_module_name>
For SLES:
sudo zypper remove <dynamic_module_name>
For FreeBSD:
sudo pkg delete <dynamic_module_name>
Configuration
After uninstalling the package, you will need to disable the module in F5 NGINX Plus configuration file nginx.conf
.
-
Disable dynamic loading of the module by removing the corrsponding
load_module
directive. -
In NGINX Plus configuration file, remove all directives related to the dynamic module.
-
Test the NGINX Plus configuration. In a terminal, type-in the command:
nginx -t
Expected output of the command:
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf is successful
-
Reload the NGINX Plus configuration to enable the module:
nginx -s reload