从官网下载 Open Source Artifactory,这里演示的是安装到 Linux,所以点击 Download RPM 下载
将下载好的 jfrog-artifactory-oss-6.14.0.rpm 上传到 Linux 上
# 在根目录创建一个文件,你也可以在任何目录创建文件夹 sudo mkdir /artifactory cd /artifactory # 将下载好的 jfrog-artifactory-oss-6.15.0.rpm 上传到你的 Linux 上 $ ls jfrog-artifactory-oss-6.14.0.rpm # 安装 artifactory sudo rpm -ivh jfrog-artifactory-oss-6.14.0.rpm
Artifactory 服务启动和关闭
# 启动服务 sudo systemctl start artifactory.service
# 在使用上面的命令启动服务的时候遇到如下错误: # Job for artifactory.service failed because a configured resource limit was exceeded. See "systemctl status artifactory.service" and "journalctl -xe" for details. # 详情:https://www.jfrog.com/jira/browse/RTFACT-19988 # 可尝试如下命令启动 cd /opt/jfrog/artifactory/app/bin && ./artifactory.sh start &
将下载好的 jfrog-artifactory-oss-6.15.0.rpm(目前最新)上传到你的 Linux 上
cd /artifactory ls jfrog-artifactory-oss-6.14.0.rpm jfrog-artifactory-oss-6.15.0.rpm # 停止服务 sudo systemctl stop artifactory.service # 进行升级 sudo rpm -U jfrog-artifactory-oss-6.15.0.rpm # 输出日志,显示升级成功 warning: jfrog-artifactory-oss-6.15.0.rpm: Header V4 DSA/SHA1 Signature, key ID d7639232: NOKEY Checking if ARTIFACTORY_HOME exists Removing tomcat work directory Removing Artifactory's exploded WAR directory Initializing artifactory service with systemctl... ************ SUCCESS **************** The upgrade of Artifactory has completed successfully. Start Artifactory with: > systemctl start artifactory.service Check Artifactory status with: > systemctl status artifactory.service NOTE: Updating the ownership of files and directories. This may take several minutes. Do not stop the installation/upgrade process.
Artifactory 卸载
停止 Artifactory 服务
systemctl stop artifactory.service
使用 root 用户执行 RPM uninstall 命令
# remove OSS version yum erase jfrog-artifactory-oss # remove PRO version, etc. yum erase jfrog-artifactory-pro
# ON MAC brew install jfrog-cli-go # WITH CURL curl -fL https://getcli.jfrog.io | sh # WITH NPM npm install -g jfrog-cli-go # WITH DOCKER docker run docker.bintray.io/jfrog/jfrog-cli-go:latest jfrog -v