1. Nginx installation method
http://nginx.org/en/docs/install.html
2. The installation is normal but cannot be accessed
After installing nginx on machine A, go to machine B Test
3. Solution
Try to use the following method to open port 80.
iptables -I INPUT -p tcp --dport 80 -j ACCEPT
The above introduces the solution to the problem that Nginx cannot be accessed outside the site, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.