阿里云服务器发布node服务后,连接不上
查看防火墙开放端口号
sudo firewall-cmd --list-all
1、node服务发布端口号设置为开放的端口号。
2、或者开发node服务的端口号。
[root@iZ2ze3fl8hjlr01p1aq6oxZ privacy]# sudo firewall-cmd --list-all
public (active)
target: default
icmp-block-inversion: no
interfaces: eth0
sources:
services: cockpit dhcpv6-client ssh
ports: 20/tcp 21/tcp 22/tcp 80/tcp 443/tcp 40976/tcp 39000-40000/tcp
protocols:
forward: no
masquerade: no
forward-ports:
source-ports:
icmp-blocks:
rich rules: