Installing Artifactory on RPM-based systems, whether for a single-node setup or a High Availability (HA) configuration, is considered a native installation. It simply means that Artifactory can be installed directly on RPM-based systems using the operating system's native package management tools, specifically YUM or DNF.
Here you'll find step-by-step instructions for installing JFrog Artifactory on an RPM system, covering both single-node and high-availability (HA) configurations.
Prerequisites
Confirm your OS is a JFrog-supported OS.
Before installing, run a preflight check using the
diagnosticUtilutility to confirm your VMs meet the minimum resource requirements.Configure your network to meet JFrog's network requirements.
For additional prerequisites like Java requirements, supported browsers, and so on, see:
Install Artifactory RPM Package
Throughout these installation steps, you must have sudo privileges or be the root user for system-level operations, package installations, and file modifications. This ensures that Artifactory can be installed correctly.
The following steps cover the installation process for both single-node and HA.
Set
JFROG_HOMEVariableFor RPM-based systems, Artifactory installs and stores its data by default in
/opt/jfrog. To refer to this path in your terminal, run the following command:export JFROG_HOME=/opt/jfrog
For more information, see JFrog Product Directory Structure.
Configure JFrog RPM Repository and Install Artifactory
This is the recommended method for installing Artifactory, as it simplifies updates.
Download JFrog Repository File:
wget https://releases.jfrog.io/artifactory/artifactory-pro-rpms/artifactory-pro-rpms.repo -O jfrog-artifactory-pro-rpms.repo
Move Repository File:
sudo mv jfrog-artifactory-pro-rpms.repo /etc/yum.repos.d/
Update YUM/DNF Cache and Install Artifactory:
Update your package list and install Artifactory. Replace
7.111.11with your desired Artifactory version.sudo yum install jfrog-artifactory-pro-7.111.11
On newer Fedora or CentOS/RHEL versions, you might use the following command, instead of
yum:sudo dnf install jfrog-artifactory-pro-7.111.11
Use
.rpmPackage to Download and Install Artifactory (Optional)This method allows you to download and install a specific
.rpmpackage directly.Download Artifactory RPM Package:
Download the specific Artifactory RPM package you wish to install. To download a specific version, replace
[RELEASE]with the exact version number (for example,7.111.11) in the command below:# Example for Artifactory Pro (replace with your desired version) curl -g -L -O -J 'https://releases.jfrog.io/artifactory/artifactory-pro-rpms/jfrog-artifactory-pro/jfrog-artifactory-pro-[RELEASE].rpm' # For example, to download Artifactory Pro 7.111.11: curl -g -L -O -J 'https://releases.jfrog.io/artifactory/artifactory-pro-rpms/jfrog-artifactory-pro/jfrog-artifactory-pro-7.111.11.rpm'
Install
.rpmPackage:Navigate to the directory where you downloaded the
.rpmpackage and install it usingyumwith root user privileges. Remember to include./for local files.# Example for Artifactory Pro sudo yum install -y ./jfrog-artifactory-<pro|oss|cpp-ce>-<VERSION>.rpm # For example, to install Artifactory Pro 7.111.11 sudo yum install -y ./jfrog-artifactory-pro-7.111.11.rpm
Set up Artifactory Database
Artifactory requires an external database for production. JFrog highly recommends using PostgreSQL for all products in the JFrog Platform, although Artifactory supports additional databases. For more information, see Database Configuration.
Configure Artifactory to Use PostgreSQL:
On each Artifactory node, edit
$JFROG_HOME/artifactory/var/etc/system.yamlto point Artifactory to your external database.shared: database: type: postgresql driver: org.postgresql.Driver url: jdbc:postgresql://<DB_SERVER_IP_OR_HOSTNAME>:5432/artifactory_db username: artifactory_user password: your_secure_passwordThe database configuration in
system.yamlmust be identical on all Artifactory nodes, and all nodes must have reliable network access to the single shared external database instance.Configure Other Supported Databases (Optional):
To utilize databases other than PostgreSQL, you'll need to set
shared.database.allowNonPostgresqltotruein yoursystem.yamland configure the database details. Here's an example for MySQL:shared: database: allowNonPostgresql: true type: mysql driver: com.mysql.jdbc.Driver url: jdbc:mysql://<your db url, for example: localhost:3306>/artdb?characterEncoding=UTF-8&elideSetAutoCommits=true&useSSL=false username: artifactory password: password
For more information about creating and configuring databases, see Set up Database.
Set up Supported Filestores
The filestore is where Artifactory physically stores the binaries.
Single-Node: A local filesystem is the default, but externalizing it (for example, to a dedicated volume) is recommended for easier management and potential migration.
High Availability (HA): A shared filestore is mandatory. This can be NFS, S3, Azure Blob Storage, Google Cloud Storage, or another supported object storage solution. All Artifactory nodes in the cluster must have unified and reliable network access to this single shared filestore.
For more information about configuring filestores, see Set up Filestore.
Start the First Artifactory Node
For Single-Node and HA: Start the first Artifactory service. This will initialize the database and, for HA setups, generate the
master.key.sudo systemctl start artifactory.service
Initial HA Setup and Licensing
After the first node is running, complete the initial setup and apply licenses for the entire cluster. This is a critical step to prevent service failures in subsequent nodes.
Access the Artifactory UI: Open your browser and go to
http://<SERVER_HOSTNAME>:8082/, replacing<SERVER_HOSTNAME>with your server's actual IP address or host name.Complete the Onboarding Wizard:
Change Default Admin Password: The default credentials are admin/password. Change this immediately.
Configure Base URL: Configure the Base URL.
Apply All Licenses: If you have an Artifactory HA license, apply the license keys for every node in your cluster now. Adding licenses for the entire cluster at this stage prevents issues with new nodes failing to start their front-end services.
Warning
If you are setting up an HA cluster, it is crucial to apply licenses for all nodes through the first node's UI. If you try to add new nodes to the cluster before applying their licenses, the new nodes' front-end microservices may fail to start with the following error message:
[jfrt] [WARN] ... - License is not installed.
Configure and Start Remaining HA Nodes
Once the licenses are applied and the first node is fully operational, you can configure and start the other nodes.
Configure
system.yamlfor HAOn each node, edit
$JFROG_HOME/artifactory/var/etc/system.yamlon each node.In the node section, set
haEnabledtotrue.taskAffinityset toanyindicates that all the nodes in the HA can act as primary nodes.
shared: node: haEnabled: true taskAffinity: anyCopy
master.keyto Other Nodes:Copy the
master.keyfile from$JFROG_HOME/artifactory/var/etc/security/of the first node to the identical path on all other nodes.Ensure the database section (as configured in Step 4) is also present and identical on all nodes.
Start Remaining Nodes for HA:
Once the
masterKeyis synchronized across all nodes, start the Artifactory service on the remaining nodes:sudo systemctl start artifactory.service
Monitor Artifactory
To check the Artifactory status, run the following command:
sudo systemctl status artifactory.service
Access Artifactory UI
After you start a new Artifactory node, you can access its UI through one of the following methods:
Direct Access:
Open your browser and navigate to
http://<ARTIFACTORY_NODE_IP>:8082/.You must do this for each newly started Artifactory node.
Load Balancer Access:
The load balancer directs traffic to
http://<ARTIFACTORY_NODE_IP>:8082/on each of your HA nodes.Configure your load balancer to point to the IP addresses of all your Artifactory nodes. When you access the load balancer's URL, it will distribute your requests across the nodes in the cluster.