Last active
March 9, 2021 13:05
-
-
Save fuxingloh/18b6b0808ea9613536e0e456b66cf0f8 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 8000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment