如何在 CentOS 8 上安装 JFrog Artifactory

JFrog Artifactory 是一个二进制存储管理工具,它管理依赖于构建工具(如 maven、Gradle ) 方便管理第三方库和发布目标仓库,从而提高软件开发效率。使用 JFrog,您可以灵活地使用您最喜欢的编排工具,使用 Artifactory 中管理的不同配置包和应用程序工件来管理您的应用程序部署。

jfrog-logo在 CentOS 8 上安装 JFrog Artifactory

步骤 1. 首先,让我们先确保您的系统是最新的。

sudo dnf update
sudo dnf install epel-release

步骤 2. 在 CentOS 8 上安装 JFrog Artifactory。

现在我们创建了一个简单的脚本来在 CentOS 系统上安装 Jfrog:

nano jfrog-installer.sh

添加以下几行:

#/bin/bash

# Disable the SELINUX on CentOS 8
# set temporary permissive selinux mode. reboot not require
sudo setenforce 0
# In next reboot,the below line will help to set disable selinux permanently.
sudo sed -i s/^SELINUX=.*$/SELINUX=disabled/ /etc/selinux/config

# jfrog oss 7.x require Java 11, installing wget and openjdk
sudo dnf install -y wget java-11-openjdk*

# download jfrog repo and directly keep in /etc/yum.repos.d dir
sudo wget https://bintray.com/jfrog/artifactory-rpms/rpm -O /etc/yum.repos.d/bintray-jfrog-artifactory-oss-rpms.repo

# install jfrog-artifactory-oss (open source)
sudo dnf install -y jfrog-artifactory-oss

# yaml files are indent sensitive. So do not remove spaces while copying. Keep as it is.
# creating system.yaml
cat