Services DevOps DevSecOps Cloud Consulting Infrastructure Automation Managed Services AIOps MLOps DataOps Microservices 🔐 Private AINEW Solutions DevOps Transformation CI/CD Automation Platform Engineering Security Automation Zero Trust Security Compliance Automation Cloud Migration Kubernetes Migration Cloud Cost Optimisation AI-Powered Operations Data Platform Modernisation SRE & Observability Legacy Modernisation Managed IT Services 🔐 Private AI DeploymentNEW Products ✨ ZippyOPS AINEW 🛡️ ArmorPlane 🔒 DevSecOpsAsService 🖥️ LabAsService 🤝 Collab 🧪 SandboxAsService 🎬 DemoAsService Bootcamp 🔄 DevOps Bootcamp ☁️ Cloud Engineering 🔒 DevSecOps 🛡️ Cloud Security ⚙️ Infrastructure Automation 📡 SRE & Observability 🤖 AIOps & MLOps 🧠 AI Engineering 🎓 ZOLS — Free Learning Company About Us Projects Careers Get in Touch

How to Install JFrog Artifactory on CentOS 7 Using RPM

How to Install JFrog Artifactory on CentOS 7 Using RPM

Installing JFrog Artifactory on CentOS 7 using RPM packages is a straightforward process that allows you to set up a robust artifact repository. In this guide, we’ll walk you through each essential step, from installing Java and setting up a database to configuring Artifactory and securing it for production environments.

JFrog Artifactory installation steps on CentOS 7

Step 1: Install Java

JFrog Artifactory requires Java to run, so the first step is to install it. Use the following commands to install Java on your CentOS 7 system:

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

Once Java is installed, verify the installation by checking the version. This ensures that Java is properly set up for Artifactory.

Step 2: Set JAVA_HOME

Next, set the JAVA_HOME environment variable, which points to the Java installation. This can be crucial for certain configurations and scripts in Artifactory.

For more details on setting up JAVA_HOME, refer to this guide.

Step 3: Install and Configure the Database Server

JFrog Artifactory requires a database to store its data. In this guide, we’ll use MariaDB as the database server. Here’s how to install and secure MariaDB:

  1. Install MariaDB:
yum install -y mariadb-server
  1. Start and enable MariaDB to run on boot:
systemctl start mariadb.service
systemctl enable mariadb.service
  1. Secure your MariaDB installation:
mysql_secure_installation

Follow the prompts to set the root password, remove anonymous users, and disable remote root login. These steps help secure your MariaDB installation for production use.

  1. Check the MariaDB version to confirm it’s installed correctly:
mysql -u root -p
MariaDB [(none)]> select version();

Step 4: Add the JFrog Artifactory RPM Repository

The JFrog Artifactory RPM packages are available from the official JFrog repository. Add the repository by running the following command:

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

This will enable your system to install the Artifactory RPM package directly from JFrog’s repository.

Step 5: Install JFrog Artifactory on CentOS 7

With the repository added, you can now install the JFrog Artifactory package. Depending on your needs, you can install either the Open Source (OSS) or the Community Edition (CE) version.

For Artifactory OSS:

yum -y install jfrog-artifactory-oss wget

For Artifactory CE:

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

Next, set the ARTIFACTORY_HOME environment variable:

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

Step 6: Configure Artifactory to Use MariaDB

Artifactory needs to be configured to use MariaDB as its database. Follow these steps to configure the database:

  1. Create the configuration directory and copy the database configuration template:
sudo mkdir /var/opt/jfrog/artifactory/etc
sudo cp /opt/jfrog/artifactory/misc/db/mariadb.properties /var/opt/jfrog/artifactory/etc/db.properties
  1. Run the MariaDB configuration script:
sudo /opt/jfrog/artifactory/bin/configure.mysql.sh

During the configuration process, you will be prompted for the MySQL root password, the Artifactory database username and password, and other details. Once the configuration completes, you will be able to connect Artifactory to MariaDB.

  1. After the setup, start the Artifactory service:
sudo systemctl start artifactory.service
sudo systemctl enable artifactory.service

Check the status of the Artifactory service to ensure it’s running correctly:

sudo systemctl status artifactory.service

Step 7: Access Artifactory Web Interface

Once Artifactory is up and running, you can access the web interface by navigating to:

http://SERVERIP_OR_DOMAIN:8081/artifactory

This is where you’ll manage your repositories, users, and other configurations.


Leverage ZippyOPS for Advanced DevOps Solutions

If you’re looking to streamline your DevOps processes further, ZippyOPS offers expert consulting, implementation, and managed services. Their team can help with everything from DevOps and DevSecOps to cloud solutions and microservices. Whether you need AIOps, MLOps, or automated infrastructure management, ZippyOPS is equipped to provide tailored solutions for your needs. For more information, visit ZippyOPS Services or explore their products.

For businesses looking to scale their operations with secure and efficient infrastructures, ZippyOPS can help you optimize your setup for reliability and performance. Reach out to their team at sales@zippyops.com for a consultation today.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top