The Amazon cloud service es2, runs the java project, but the project cannot be accessed locally

I applied for es2, to deploy the written web project to the linux system. The linux system has installed the java environment.
execute the following command to run the project:

 nohup java -jar /app/***.jar >  /log/test   2>&1 &

execute command: ps-ef | grep java
you can see that the project process has been started

clipboard.png

:netstat -nap | grep 19077
.

clipboard.png

:netstat -nlpt
.

clipboard.png

question:
1. I enabled the network firewall. When I can locally connect to the database through port 3306
Amazon Cloud, when I start the instance, there are two ip, one elastic ip, and one private ip,. I use the elastic ip+ port number to access the project, but I just can"t access it. Why is this so?

2. From a process point of view, my project has been started, the project port number 8899, can see the project running log, but can not access the project home page, now I use the instance has two ip, are generated by default, I have not configured the ip address, do I still need to do some configuration?

Mar.14,2021
Menu