Jenkins installed on EC2 instance, but, it doesn't seem to work. Jenkins status says active but nothing runs on port 8080

0

I have installed jenkins on AWS EC2 instance, followed this article. https://www.jenkins.io/doc/tutorials/tutorial-for-installing-jenkins-on-AWS/

When I check jenkins status, using "sudo service jenkins status"

● jenkins.service - LSB: Jenkins Automation Server

Loaded: loaded (/etc/rc.d/init.d/jenkins; bad; vendor preset: disabled)

Active: active (exited) since Fri 2022-02-25 12:04:09 UTC; 57min ago Docs: man:systemd-sysv-generator(8)

Feb 25 12:04:09 ip-172-31-33-61.ap-south-1.compute.internal systemd[1]: Starting LSB: Jenkins Automation Server... Feb 25 12:04:09 ip-172-31-33-61.ap-south-1.compute.internal jenkins[22299]: Starting Jenkins [ OK ] Feb 25 12:04:09 ip-172-31-33-61.ap-south-1.compute.internal systemd[1]: Started LSB: Jenkins Automation Server.

But when I use "telnet localhost 8080", it says

Trying 127.0.0.1...

telnet: connect to address 127.0.0.1: Connection refused

and "sudo netstat -anlp | grep 8080" gives no output.

Can someone please help me with this? Thank you.

已提问 2 年前1192 查看次数
1 回答
1

Hello Rakshith,

According to the sudo service jenkins status output that you've posted, it looks like your Jenkins process has exited due to a possible error.

Active: active (exited) since Fri 2022-02-25 12:04:09 UTC; 57min ago

As the process exited, you are not able to connect to the port 8080.

To find out more about the issue, you can run the below command and check for any errors that could have contributed to the issue.

sudo journalctl -u jenkins

I hope this is helpful!

profile pictureAWS
支持工程师
已回答 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则