Steps to download and Install artifactory in Linux

Purpose:

  • This blog shows how to download and Install artifactory as a service on a linux machine

Pre-Requisites:

  • 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:

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:

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
cd /opt/app
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.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s