1. First check whether the network can be connected (ping) 2. Check whether http port 80 is occupied 3. Whether the virtual machine firewall is turned on, and the firewall configuration you gave only has input but not output. . The default firewall is drop
Turn off the virtual machine’s firewall
It may also be an Apache configuration issue
iptables -F
Whether the port number is 80
Is the virtual machine running on your local machine? Try using bridge network mode
1. First check whether the network can be connected (ping)
2. Check whether http port 80 is occupied
3. Whether the virtual machine firewall is turned on, and the firewall configuration you gave only has input but not output. . The default firewall is drop