Skip to content

Instantly share code, notes, and snippets.

@devopseze
Forked from fuxingloh/artifactory.sh
Last active October 16, 2018 11:33
Show Gist options
  • Save devopseze/d018dfb51cfaecd3e46e29ba463b5d96 to your computer and use it in GitHub Desktop.
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.
#!/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