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?
You have to use
sudo ufw enable
After that, you can check if it is working
sudo ufw status verbose
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.