I'd like to ask you some questions about the deployment of the react project.

execute serve-s locally after executing npm run build locally. Transfer the build file to Ali Cloud via localhost access, and then execute serve-s in the build file.
finally shows that the deployment is successful

.

but it cannot be accessed through private ip172.17.42.98:5000, nor through public ip:47.95.0.40:5000, and the connection timeout is shown after input! Can you help

?
Mar.02,2021

this is not the problem with react. It may be that your firewall does not open this port


check whether port 5000 is open via telnet 47.95.0.40 5000 .


has been encountered before. You need to open the instance in Ali Cloud Management and configure the ports that can be accessed by the public network. At that time, it will not take effect until you restart it.

Menu