This example covers WordPress hosted on Nginx that has been installed on a 64 bit CentOS Elastic Compute Service instance (ECS). In this example, the cloud host provider is Alibaba Cloud, but the following details are relevant to other cloud providers.
Remote into instance using SSH
To update WordPress on the ECS instance, we will need to remote into the instances using Secure Shell (SSH). I will be using Putty.exe to connect into the instance, but any client that supports SSH will work too.
Download WordPress plugin
Locate the URL of the WordPress plugin that you would like to add. Using the command, download the plugin. You may need to download wget onto your Linux instance and do not already have it.
Extract the WordPress Plugin
Most WordPress Plugins are compressed using .zip, .tar, etc… If this is the case, extract the WordPress plugin package. If the unzip command isn't already installed on your system, you may need to do so.
#Install unzip sudo apt-get install unzip # extract .tar file tar xzvf [filename].tar.gz # extract .zip file unzip file.zip -d destination_folder
Extract WordPress Plugin content
Once the Plugin files have been extracted, copy the contents to "wp-content/plugins/". In this example WordPress is hosted on Nginx running on ECS instance so the web root is located at "~/../data/wwwroot/default/wp-content/plugins/".
sudo cp -r ~/plugin ~/../data/wwwroot/default/wp-content/plugins/
Once the plugin files are installed, navigate to WordPress > plugins and activate installed plugin. By default plugins are not activated.