- This blog shows how to download and Install artifactory as a service on a linux machine
- A Linux development machine with sufficient CPU, memory, and hard disk space.
- JDK 8 installer – for the demo I am using jdk-8u92-linux-x64.tar.gz
Installing the JDK:
- Java can be downloaded from – http://www.oracle.com/technetwork/java/javase/downloads/index.html
For Linux download the installer and unzip it to preferred location.
- Move to the extracted directory and use command update-alternatives to tell system where java and its executables are installed.
|update-alternatives –install /usr/bin/java java /opt/java/jdk1.8.0_92/bin/java 100
update-alternatives –config java
|update-alternatives –install /usr/bin/javac javac /opt/java/jdk1.8.0_92/bin/javac 100
update-alternatives –config javac
|update-alternatives –install /usr/bin/jar jar /opt/java/jdk1.8.0_92/bin/jar 100
update-alternatives –config jar
After installation check the java version as in below snapshot.
Download and Install artifactory:
- Download the rpm repo file and install artifactory. See https://www.jfrog.com/confluence/display/RTF/Installing+on+Linux+Solaris+or+Mac+OS for more information.
|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
- Create a symbolic link to the Artifactory installation
ln -s /etc/opt/jfrog/artifactory/ /opt/app/artifactory
- Start Artifactory.
|sudo service artifactory start|
To access the artifactory open the link : http://host:8081/artifactory
- When you access the above URL for the first time, it prompts for setting a password. Set a password of your choice.
Add maven remote repositories.
HOPE YOU ENJOYED MY BLOG…!! IF YOU HAVE ANY QUERIES PLEASE POST THEM IN THE COMMENT SECTION.