HTTP Port 80 cannot open in Linux

966 Views Asked by At

I want to use HTTP port 80 in Linux. I already allow the port in firewall by using this command:

sudo ufw allow 80/tcp

Then, I'm using this command to check the status:

sudo ufw status

It shows that the port is successfully allowed in the firewall. But I still cannot use that port which I got service is unavailable. I try to check the port by using sudo nmap localhost, but the HTTP is still closed.

Can anyone help? is that the port is already open or not?

1

There are 1 best solutions below

0
Patrick Mendes Guimarães On

You have to use

sudo ufw enable

After that, you can check if it is working

sudo ufw status verbose