Skip to content

Instantly share code, notes, and snippets.

@rushi216
Last active August 19, 2016 07:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rushi216/3e060af9530cd3876acd209276e9f9d7 to your computer and use it in GitHub Desktop.
Save rushi216/3e060af9530cd3876acd209276e9f9d7 to your computer and use it in GitHub Desktop.
Install jenkins on amazon linux
sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins.io/redhat-stable/jenkins.repo
sudo rpm --import http://pkg.jenkins.io/redhat-stable/jenkins.io.key
sudo yum install -y jenkins
sudo service jenkins start
# redirect port 80 requests to 8080
sudo iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080
sudo iptables -t nat -I OUTPUT -p tcp -o lo --dport 80 -j REDIRECT --to-ports 8080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment