Last active
August 19, 2016 07:08
-
-
Save rushi216/3e060af9530cd3876acd209276e9f9d7 to your computer and use it in GitHub Desktop.
Install jenkins on amazon linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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