在AWS ec2中部署Go app的连接被拒绝

I have a compiled Go project that I want to deploy to an ec2 instance. I just simply upload the application and run ./application on the remote server. In the terminal, the application is running and says he's listening to localhost:3000. running app I've already added the 3000 port to the security group. However, when I tried to access it in my browser using publicip:3000, it always shows connection refused, whether I've run the application or not. refused connect

我试图在本地运行该应用程序,但确实可以运行。

那是因为我部署不正确吗?