Node. js ~ Deployment on linux ~ Solution for accessing the node. js website over the Internet, linuxnode. js

Source: Internet
Author: User

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!

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.