This guide will walk you through steps used to install JFrog Artifactory on CentOS 7. JFrog Artifactory is the world’s most advanced repository manager which fully supports software created in any language or using any tool.

JFrog Artifactory is designed to integrate with the majority of continuous integration and delivery tools to deliver an end to end automated solution for tracking artifacts from development to production. A number of open source plugins are available to give you an easy way to extend the capabilities of Artifactory and integrate with other tools. Examples are JenkinsTeamCityBambooMavenBower and Gradleand much more.

For Ubuntu, use: How to Install JFrog Artifactory on Ubuntu 18.04 / 16.04

There are different editions of JFrog Artifactory available, check the Comparison Matrix.

There two ways of installing Artifactory on CentOS 7:

  1. Using Docker
  2. Installing from RPM packages

Method 1: Install JFrog Artifactory using Docker

For Docker installation, here are the steps to use:

Step 1: Install Docker Engine

Install Docker using our previous guide: How to install Docker CE on Ubuntu / Debian / Fedora / Arch / CentOS

Step 2: Download JFrog Artifactory Docker image

Pull the latest Docker image of JFrog Artifactory.

docker pull

For CE edition:

docker pull

Confirm Docker images:

$ docker images
REPOSITORY                                   TAG                 IMAGE ID            CREATED             SIZE   latest              24d943a892ac        43 hours ago        582MB      latest              58d49856785f        43 hours ago        582MB

Step 3: Create Data Directory

Create data directory on host system to ensure data used on container is persistent.

sudo mkdir -p /jfrog/artifactory
sudo chown -R 1030 /jfrog/

Step 4: Start JFrog Artifactory container

To start an Artifactory container, use the command:

docker run --name artifactory -d -p 8081:8081 \
-v /jfrog/artifactory:/var/opt/jfrog/artifactory \

You can pass Java system properties to the JVM running Artifactory using EXTRA_JAVA_OPTIONS. Check more on Docker setup link. See example below.

$ docker run --name artifactory -d -p 8081:8081 \
-v /jfrog/artifactory:/var/opt/jfrog/artifactory \
-e EXTRA_JAVA_OPTIONS='-Xms512m -Xmx2g -Xss256k -XX:+UseG1GC' \

Use docker ps command to view container information.

Artifactory docker ps

Step 5: Running JFrog Artifactory container with Systemd

Systemd is the default init system for CentOS 7. We can use it to manage JFrog Artifactory container.

Create Artifactory service unit file.

sudo vim /etc/systemd/system/artifactory.service


Description=Setup Systemd script for Artifactory Container

ExecStartPre=-/usr/bin/docker kill artifactory
ExecStartPre=-/usr/bin/docker rm artifactory
ExecStart=/usr/bin/docker run --name artifactory -p 8081:8081 \
  -v /jfrog/artifactory:/var/opt/jfrog/artifactory \
ExecStop=-/usr/bin/docker kill artifactory
ExecStop=-/usr/bin/docker rm artifactory


Reload systemd.

sudo systemctl daemon-reload

Then start Artifactory container with systemd.

sudo systemctl start artifactory

Enable it to start at system boot.

sudo systemctl enable artifactory

Status can be checked with:

sudo systemctl status artifactory

Sample output:

artifactory service status docker

Also check service binding with:

$ ss -tunelp | grep 8081

Step 6: Access Artifactory Web Interface

Artifactory can be accessed using the following URL:


Follow setup instructions that follows.

welcome to artifactory

Select the package type(s) you want to create default repositories for.

Artifactory create repositories

You can skip to set later.

Artifactory finish installation

Click “Finish” button to complete installation.

Artifactory complete installation

Step 7: Configure Nginx reverse proxy (Optional)

If you want to use Nginx as Proxy with SSL, check out the guide below:

Configure JFrog Artifactory behind Nginx reverse proxy and Let’s Encrypt SSL

Method 2: Install JFrog Artifactory using RPM

Here are the steps you need to install JFrog Artifactory on CentOS 7 from RPM packages.

Step 1: Install Java

Use the commands below to install Java on CentOS:

sudo yum -y install java-1.8.0-openjdk  java-1.8.0-openjdk-devel
sudo alternatives --config java
java -version

Step 2: Set JAVA_HOME

After installing Java, Set JAVA_HOME environment variable.

Set JAVA_HOME on CentOS / RHEL / Fedora

Step 3: Install and Configure Database Server

Install MariaDB Database Server:

Install MariaDB Server on CentOS 7

Step 4: Add JFrog Artifactory RPM repository

The JFrog Artifactory packages are available on official repository. Add it by running:

curl -sL | sudo tee /etc/yum.repos.d/bintray-jfrog-artifactory-rpms.repo

This repository works for both Artifactory CE and Artifactory OSS editions.

Step 5: Install JFrog Artifactory on CentOS 7

Installing JFrog Artifactory is a matter of running yum command and specifying Artifactory edition to install.

Install JFrog Artifactory OSS:

sudo yum -y install jfrog-artifactory-oss wget

Install JFrog Artifactory CE:

sudo yum -y install jfrog-artifactory-cpp-ce wget 


echo "export ARTIFACTORY_HOME=/opt/jfrog/artifactory" | sudo tee -a /etc/profile
source /etc/profile

Files and Folders Locations:

When installed from an RPM distribution, Artifactory retains the FHS (Filesystem Hierarchy Standard) format:

Tomcat home/opt/jfrog/artifactory/tomcatartifactory  (root for sub dirs)
Artifactory startup script/etc/init.d/artifactoryroot
Artifactory logs/var/opt/jfrog/artifactory/logsartifactory
Artifactory home/var/opt/jfrog/artifactoryartifactory 
Artifactory etc/etc/opt/jfrog/artifactoryartifactory 
Artifactory env variables/etc/opt/jfrog/artifactory/defaultartifactory 
Artifactory binary/opt/jfrog/artifactoryroot 

Step 6: Configuring Artifactory to use MariaDB

1. Copy Artifactory database configuration template.

sudo mkdir /var/opt/jfrog/artifactory/etc
sudo cp /opt/jfrog/artifactory/misc/db/ /var/opt/jfrog/artifactory/etc/

2. Run MariaDB configuration script.

sudo /opt/jfrog/artifactory/bin/

Provide root password and set Artifactory user password then Agree to download Artifactory.

# Welcome to the Artifactory MySQL configuration tool! #

Please enter the MySQL server admin username [root]: <Enter root password>

Please enter the MySQL server admin password: <Set ArtifactoryAdminPassoword>
Please enter the Artifactory database username [artifactory]: 

Please enter the Artifactory database password [password]: 
Creating the Artifactory MySQL user and database...

No MySQL JDBC connector found. Download or copy one needed.
Does the current server has access to the Internet? [Y/n] y

Downloading mysql-connector-java-5.1.24.jar to /opt/jfrog/artifactory/tomcat/lib...

Configuration completed successfully!
You can now start up the Artifactory service to use Artifactory with MySQL.
Press enter to exit...

Start Artifactory service:

sudo systemctl start artifactory.service
sudo systemctl enable artifactory.service

Check service status:

$ sudo systemctl status  artifactory.service
● artifactory.service - Setup Systemd script for Artifactory in Tomcat Servlet Engine
Loaded: loaded (/usr/lib/systemd/system/artifactory.service; enabled; vendor preset: disabled)
Active: active (running) since Wed 2019-04-10 10:31:16 CEST; 36s ago
Process: 5091 ExecStop=/opt/jfrog/artifactory/bin/ stop (code=exited, status=0/SUCCESS)
Process: 5164 ExecStart=/opt/jfrog/artifactory/bin/ start (code=exited, status=0/SUCCESS)
Main PID: 5213 (java)
CGroup: /system.slice/artifactory.service
‣ 5213 /usr/bin/java -Djava.util.logging.config.file=/opt/jfrog/artifactory/tomcat/conf/ -Djava.util.logging.manager=or…
Apr 10 10:31:16 artifactory[5164]: + runReplicator
Apr 10 10:31:16 artifactory[5164]: + '[' '' == true ']'
Apr 10 10:31:16 artifactory[5164]: + return 1
Apr 10 10:31:16 artifactory[5164]: + startMetadata
Apr 10 10:31:16 artifactory[5164]: + runMetadata
Apr 10 10:31:16 artifactory[5164]: + '[' '' == true ']'
Apr 10 10:31:16 artifactory[5164]: + return 1
Apr 10 10:31:16 artifactory[5164]: + '[' 0=0 ']'
Apr 10 10:31:16 artifactory[5164]: + exit 0
Apr 10 10:31:16 artifactory systemd[1]: Started Setup Systemd script for Artifactory in Tomcat Servlet Engine.

Step 7: Access Artifactory Web Interface

Artifactory can be accessed using the following URL:


You should see Artifactory welcome page.

welcome to artifactory

Check Artifactory Documentation for more features and usage guides.

Check out Available books on Amazon:

Continuous Delivery for Java Apps: Build a CD Pipeline Step by Step Using Kubernetes, Docker, Vagrant, Jenkins, Spring, Maven and Artifactory

$9.90  in stock
as of July 30, 2021 5:18 pm

Liquid Software: How to Achieve Trusted Continuous Updates in the DevOps World

 in stock
as of July 30, 2021 5:18 pm

Your support is our everlasting motivation,
that cup of coffee is what keeps us going!

As we continue to grow, we would wish to reach and impact more people who visit and take advantage of the guides we have on our blog. This is a big task for us and we are so far extremely grateful for the kind people who have shown amazing support for our work over the time we have been online.

Thank You for your support as we work to give you the best of guides and articles. Click below to buy us a coffee.


Please enter your comment!
Please enter your name here