-
-
Save devopseze/d018dfb51cfaecd3e46e29ba463b5d96 to your computer and use it in GitHub Desktop.
Install Artifactory on AWS AMI and register as service to auto start and then starts it. Test on lightsail. Register as startup script.
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
#!/bin/bash | |
# Upgrade to Java-8 | |
sudo yum install java-1.8.0 | |
sudo yum remove java-1.7.0-openjdk | |
# Installing Artifactory | |
wget https://bintray.com/jfrog/artifactory-rpms/rpm -O bintray-jfrog-artifactory-rpms.repo | |
sudo mv bintray-jfrog-artifactory-rpms.repo /etc/yum.repos.d/ | |
sudo yum install jfrog-artifactory-oss | |
# Setup Service | |
sudo chkconfig artifactory on | |
sudo service artifactory start | |
sudo iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 8081 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment