How to reinstall nginx if I deleted /etc/nginx folder (Ubuntu 14.04)?
apt-get --purge remove nginx-*
apt-get install nginx
Try:
sudo aptitude purge nginx && sudo aptitude install nginx
This code will remove and reinstall Nginx
Login as root or:
sudo su -
Then uninstall nginx:
apt-get purge nginx nginx-common nginx-full
And then install it:
apt-get install nginx
The other way is to run sudo command with -H
:
sudo -H apt-get purge nginx nginx-common nginx-full
sudo -H apt-get install nginx