本文将带你了解JFrog的订阅类型,并提供了几种安装方式。
- 申请试用License的链接 Start a Free Trial.
- 确定要安装的产品
- 查看架构和系统要求 System Architecture and System Requirements
- 准备服务器
- Install Artifactory
- Install Insight (Enterprise/Enterprise+ only)
- Apply your JFrog License depending on your license type, you can:
- either deploy a license manually to Artifactory (using the onboarding wizard on initial startup)
- or use a license bucket after connecting Insight
- Install Artifactory Edge node(s) (optional)
- The installation process is identical to installing any other Artifactory instance.
- Install Xray
- Trial License: upload it to your JPD as a separate file. Read more about the JFrog Xray trial.
- Install Distribution
- Configure Distribution
- Install Pipelines
不同订阅对应的产品
安装JFrog平台,首先需要安装Artifactory
Subscription Type | JFrog Products to Install |
---|---|
Artifactory OSS (Free) | JFrog Artifactory Open Source: Maven and Generic Package Manager Repository OSS安装包 |
Artifactory CE (Free) | JFrog Artifactory Conan Edition: Conan C/C++ and Generic Package Manager Repository CE安装包 |
JFrog Container Registry (Free) | JFrog Container Registry (Powered by Artifactory): Docker, Helm and Generic Package Manager Repository Container安装包 |
Pro | JFrog Artifactory: Universal Package Manager Repository |
Pro X | JFrog Artifactory: Universal Package Manager Repository JFrog Xray: Security and Compliance Scanning |
Enterprise X | JFrog Artifactory: Universal Package Manager Repository JFrog Xray: Security and Compliance Scanning |
Enterprise+ | JFrog Artifactory: Universal Package Manager Repository JFrog Insight: Manage DevOps Insights JFrog Xray: Security and Compliance Scanning JFrog Pipelines: CI/CD pipeline orchestration JFrog Distribution: Global software distribution |
安装包
默认账户和密码(Default credential for Artifactory:)
user: admin
password: password
Cenotos7.x虚拟机 2台 (VirtualBox提供)
虚机的推荐配置如下,所有磁盘空间都分给"/"目录
- 2c4g100G for Artifactory
- 4c8g200G for Xray
- 8c16g300G for K8s
服务器时区和时间配置
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
yum -y install ntpdate net-tools
/usr/sbin/ntpdate ntp1.aliyun.com
设置定时任务:同步服务器时间
echo "*/10 * * * * /usr/sbin/ntpdate ntp1.aliyun.com" >> /var/spool/cron/root
关闭防火墙 (在Docker compose 的安装方式中,不执行此步骤)
systemctl disable firewalld && systemctl stop firewalld
关闭IpV6 (在Docker compose 的安装方式中,不执行此步骤) 第一种方法是通过 /etc/sysctl.conf 文件对 /proc 进行永久修改。
sudo vi /etc/sysctl.conf
#禁用整个系统所有接口的IPv6
net.ipv6.conf.all.disable_ipv6 = 1
#禁用某一个指定接口的IPv6(例如:eth0, lo)
net.ipv6.conf.lo.disable_ipv6 = 1
net.ipv6.conf.eth0.disable_ipv6 = 1
使这些更改生效,运行以下命令:
sudo sysctl -p /etc/sysctl.conf
升级方式和步骤依赖于安装方式,请选择一样的方式进行安装和升级。
如果安装过程中遇到问题或启动失败,可以将以下内容发送到我的邮箱-不保证回复(jians0625@gmail.com)
- console.log
- journalctl -xe