Ubuntu uninstall nginx and reinstall

Recently, I encountered a problem when modifying nginx and need to reconfigure the nginx service; the specific process is as follows:

sudo apt-get purge nginx nginx-common # Uninstall nginx, including deleting configuration files.
apt install nginx

Keep it updated, please indicate the source when reprinting, please pay attention to cnblogs.com/xuyaowen for more content;

Guess you like

Origin www.cnblogs.com/xuyaowen/p/reinstall-nginx.html
Recommended