Created
January 24, 2017 07:20
-
-
Save 63phc/9697cb84015732fe6fc3f189196c6bee to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#удаляем nginx и все связанные пакеты | |
sudo apt-get remove nginx* | |
#удаляем рабочие директории и логи | |
sudo rm -rf /etc/nginx/ /usr/sbin/nginx /usr/share/man/man1/nginx.1.gz | |
#удаляем остатки nginx из базы apt | |
sudo apt-get --purge autoremove nginx && sudo dpkg --purge nginx | |
#устанавливаем nginx заново с чистыми конфигами | |
sudo apt-get -o DPkg::options::=--force-confmiss --reinstall install nginx |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment