kali uninstall nginx 1

kali uninstall nginx

#### Removes all but config files.

sudo apt-get remove nginx nginx-common
#### Removes everything.

sudo apt-get purge nginx nginx-common
#### After using any of the above commands, use this in order to remove dependencies used by nginx which are no longer required.

sudo apt-get autoremove

Here is what the above code is Doing:
1. Install nginx
2. Create a new directory for the website
3. Create a new file in the directory
4. Add some content to the file
5. Create a symbolic link to the file in the nginx directory
6. Restart nginx

Similar Posts