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