My files work under localhost, but when I put them through EC2 t2.micro instance, the connection is denied.

0

As the title suggests, my files work under localhost. I've checked that there is no problem in the code. Yesterday, I changed the billing information, so I thought the card payment being unable to be processed was the reason why AWS stopped opening the server. But, I noticed that AWS charged me with the new card yesterday.

I don't know how to fix this problem. Localhost works fine, yet the public IP wouldn't work. I keep getting "ERR_CONNECTION_REFUSED". Should I buy new instance?

1回答
0

Is it a web server running on EC2?
Try to make sure that the web server is running in EC2

profile picture
エキスパート
回答済み 1年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ