Issue
I've installed Jenkins on my Ubuntu machine running on compute engine in Google Cloud with below commands.
sudo apt-get install apache2 libapache2-mod-php5 php5-mcrypt php5-mysql git openjdk-7-jre openjdk-7-jdk -y
wget -q -O - https://pkg.jenkins.io/debian/jenkins-ci.org.key | sudo apt-key add -
sudo sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'
sudo apt-get update
sudo apt-get install jenkins
Jenkins seems to be installing fine but when i go to the public IP address on port 8080 nothing is opening and I'm getting timeout error.
I found similar question Jenkins not showing on Ubuntu through google cloud but I have done the firewall rules part mentioned here but still I am not able to open the address on port 8080.
1.Name for the rule - jenkins-rule. 2.Direction is ingress 3.Action on match is Allow 4.Targets is All instances 5.Source IP ranges is 0.0.0.0/0 6.Protocols and ports is tcp:8080
Solution
As you already configured FW rules, it's seem to me you need to restart the Jenkins service
sudo systemctl restart jenkins
If not work reset the VM and check it after cheeking the status of the Jenkins service
sudo systemctl status jenkins
For me it works!
Answered By - Mahboob