when you have stop the your Ec2 Ubuntu server and start again you public ip was changed in that case you follow the steps
1.step you can check your 8080 port allow in your virtual server security
group
2.Step Check your ec2 server memory(RAM) and cpu load
3.step Edit your jenkins.model.JenkinsLocationConfiguration.xml file and
put the new public ip your ec2 server
$$sudo nano /var/lib/jenkins/jenkins.model.JenkinsLocationConfiguration.xml
-----------------------------------------------------
?xml version='1.1' encoding='UTF-8'?>
<jenkins.model.JenkinsLocationConfiguration>
<jenkinsUrl>http://new_ip:8080/</jenkinsUrl>
</jenkins.model.JenkinsLocationConfiguration>
-----------------------------------------------------
and save this file and restart jenkins service`enter code here`