First of all, the problem is that the local machine can ping the address of the virtual machine, that is to say, the communication on both sides is OK. My virtual machine address is: http://192.168.227.128:8080/. But the local browser can not access tomcat. After inquiry, the reason is that the firewall of the virtual machine restricts access. Turn off the firewall of the virtual machine to access.
For the method of closing the firewall in CentOS system, please refer to: https://blog.csdn.net/Post_Yuan/article/details/78603212.