Ubuntu 14.04 after the nginx uninstall reinstall does not regenerate solutions profile
In the configuration nginx
configured wrong during the experiments leading to the virtual host can not access. A heartless nginx
profile directory ( /etc/nginx
) are deleted, and I do not back up these configuration files, so want to reinstall nginx
.
Originally thought directly following apt-get
instruction
1
2
|
$ sudo apt-get --purge remove nginx
$ sudo apt-get install nginx
|
I can handle, but does not actually have automatically generate nginx
configuration files, even the /etc/nginx
directory did not produce.
thenautoremove
1
2
3
|
$ sudo apt-get --purge remove nginx
$ sudo apt-get autoremove
$ sudo apt-get install nginx
|
prompt
1
|
awk: cannot open /etc/nginx/nginx.conf (No such file or directory)
|
Although it produced a /etc/nginx
catalog, but only part of the configuration file
1
|
conf.d sites-available sites-enabled
|
then
1
2
3
|
$ sudo apt-get --purge remove nginx
$ sudo apt-get autoremove
$ dpkg --get-selections | grep nginx
|
Set out with nginx
related software
1
|
nginx-common
|
Then uninstall and reinstall
1
2
|
$ sudo apt-get --purge remove nginx-common
$ sudo apt-get install nginx
|