After Nginx starts successfully, delete the default, and then establish a soft connection, but cannot listen to port 80. Why?

Server: Aliyun
system: Ubuntu 16.04.4

  1. after installing nginx, I deleted the default of / etc/nginx/sites-enabled/
  2. using ln-s / etc/nginx/sites-available/default / etc/nginx/sites-enabled/default to establish soft link, reload nginx service, it is found that port 80 is not listening

  1. defaultln /etc/nginx/sites-available/default /etc/nginx/sites-enabled/defaultreload nginx80

is there a great god who can explain the reason for this?

Sep.10,2021

your soft link command is used incorrectly, ln-s / etc/nginx/sites-available/default / etc/nginx/sites-enabled/default is not allowed, and the soft link created in this way points to the wrong one. The right thing to do is to go to the / etc/nginx/sites-enabled directory and then

sudo ln -s ../sites-available/default .
Menu