Cannot Access ERPNext after installing it with success

I installed ERPNext on a EC2 instance with Ubuntu 20 with success.
After installation I get:

But when I try (from the server):


   curl localhost

I get 404 error in the first and second case and Failed to connect to localhost port 80: Connection refused in the third case. Do you know why?
My intention is, once this works, to open ERPNext from my computer (not from the server) changing localhost for the server IP. I mean, using


Port 8000, 80 and 443 are opened in the instance


May we know the output of bench setup nginx ? It may also help to say what method was used to install frappe/bench/ERPNext.

Thanks @smino. I get this:

$ bench setup nginx
WARN: bench is installed in editable mode! This is not the recommended mode of installation for production. Instead, install the package from PyPI with: `pip install frappe-bench`

Port configuration list:
Site assigned port: 80

The output from the following might help diagnose what is going on:

ip a
curl -I localhost, and also localhost:8000
netstat -plnt