我正在使用ubuntu18(AMI)在AWS EC2实例上运行Rails应用程序。我已经检查了日志,但是找不到问题的原因。 网页向我显示 ERR_CONNECTION_REFUSED 。
这是命令 sudo netstat -nupt -l </ strong>的结果:
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN nginx: master
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN sshd
tcp 0 0 127.0.0.1:5432 0.0.0.0:* LISTEN postgres
tcp6 0 0 :::80 :::* LISTEN nginx: master
tcp6 0 0 :::22 :::* LISTEN sshd
tcp6 0 0 ::1:6379 :::* LISTEN redis-server 12
我检查了端口连接。在端口443上,我收到一条消息,表明它已被阻止,并且端口443也未显示在上面的列表中。
以下是安全组规则: