Node. js ~ Deployment on linux ~ Solution for accessing the node. js website over the Internet, linuxnode. js
This is the last node. subsequent articles on deploying js to linux, when we have installed node. after js, we established a website named sailsjs, and we were unable to access the website on an external computer. How can we solve this problem?
Solution:
Next we will implement
1. view the linux IP Address
2. Can I ping this linux instance from an external computer?
3. Is the node. js website running normally on linux and the port listening normally?
Curl localhost: 8072
4. Is the Firewall Enabled for linux?
Systemctl status firewalld
Change the firewall policy to disabled when linux is started.
[Root @ localhost ~] # Systemctl disable firewalld
Stop the Firewall Service of the current system
[Root @ localhost ~] # Systemctl stop firewalld
5. telnet the linux instance from the computer to check whether the node. js port is connected.
After making the above adjustments, we will test it on the computer and find that the node. js website on linux can be browsed normally!
The first time I saw this interface, I was very excited. Maybe this is a technology!
When the problem is solved, excitement is inevitable!