Hexo cannot be accessed

the centos minimal version is installed in the virtual machine. After building the hexo, the system cannot access the http://localhost:4000 locally through the browser because the desktop program is not installed. Because you do not want to install the desktop program, the network connection mode of the virtual machine is changed to bridge mode (previously, NAT), wanted to access it through the host host of the virtual machine.

but the host host was found to be unreachable.
in the physical host, cmd-> ping virtual host discovers that the network is accessible, but cannot open

tried in a virtual machine:

hexo s -p 4004
hexo s -i 192.168.1.4 IP

~
Mar.10,2021

has been solved. You need to open the port manually

.
Menu