Uninstalling a dynamic module (original) (raw)

  1. Home
  2. F5 NGINX Plus
  3. Admin Guide
  4. Dynamic Modules Uninstalling a dynamic module

You may need to uninstall a dynamic module in NGINX Plus in several scenarios:

To uninstall a dynamic module, run the appropriate command for your operating system in a terminal, replacing <MODULE-NAME> with the actual package name, for example, nginx-plus-module-cookie-flag.

sudo yum remove <MODULE-NAME>  
sudo yum remove <MODULE-NAME>  
sudo dnf remove <MODULE-NAME>  
sudo dnf remove <MODULE-NAME>  
sudo apt remove <MODULE-NAME>  
sudo apt remove <MODULE-NAME>  
sudo zypper remove <MODULE-NAME>  
sudo zypper remove <MODULE-NAME>  
sudo pkg delete <MODULE-NAME>  
sudo pkg delete <MODULE-NAME>  

After uninstalling the package, you will need to disable the module in the NGINX configuration file.

  1. In a text editor, open the NGINX Plus configuration file:
    • /etc/nginx/nginx.conf for Linux
    • /usr/local/etc/nginx/nginx.conf for FreeBSD
  2. Disable dynamic loading of the module by removing the corresponding load_module directive.
  3. Remove all directives related to the dynamic module.
  4. Save the configuration.
  5. Test the NGINX Plus configuration. In a terminal, type-in the command:
    Expected output of the command:
    shell
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok  
nginx: configuration file /etc/nginx/nginx.conf is successful  
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok  
nginx: configuration file /etc/nginx/nginx.conf is successful  
  1. Reload the NGINX Plus configuration: