jcr使用非内嵌数据库过程

1.对应数据库jdbc jar下载

搜索应对数据库的,下载相应版本jar

2.上传jar及修改system.yml

2.1加载jdbc jar

var/bootstrap/artifactory/tomcat/lib
xxxx.jar

2.2system.yml配置db

shared:
...
  ## Database Configuration
  database:
    ## To run Artifactory with any database other than PostgreSQL allowNonPostgresql set to true.
    #allowNonPostgresql: false

    ## One of mysql, oracle, mssql, postgresql, mariadb
    ## Default Embedded derby

    ## Example for postgresql
    #type: postgresql
    #driver: org.postgresql.Driver
    #url: "jdbc:postgresql://<your db url, for example: localhost:5432>/artifactory"
    #username: artifactory
    #password: password
    ##For Kerberos Authentication
    #kerberosAuth: true

    ## Example for mysql 
    ## uncomment below to use database type
    ##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

    ## Example for oracle
    ## uncomment below to use database type
    ##type: oracle
    ##driver: oracle.jdbc.OracleDriver
    ##url: "jdbc:oracle:thin:@<your db server url, for example: localhost:1521>:ORCL"
    ##username: artifactory
    ##password: password
    ##For Kerberos Authentication
    ##kerberosAuth: true

    ## Example for mssql
    ## uncomment below to use database type
    ##type: mssql
    ##driver: com.microsoft.sqlserver.jdbc.SQLServerDriver
    ##url: "jdbc:sqlserver://<your db server url, for example: localhost:1433>;databaseName=artifactory;sendStringParametersAsUnicode=false;applicationName=Artifactory Binary Repository"
    ##username: artifactory
    ##password: password

    ## Example for mariadb
    ## uncomment below to use database type
    ##type: mariadb
    ##driver: org.mariadb.jdbc.Driver
    ##url: "jdbc:mariadb://<your db server url, for example: localhost:3306>/artdb?characterEncoding=UTF-8&elideSetAutoCommits=true&useSSL=false"
    ##username: artifactory
    ##password: password

参考system.full-template.yaml

3.启动jcr服务

[root@centos9-81 app]# ./bin/artifactoryctl --help

.//opt/artifactory-jcr-7.98.15/app/bin/artifactory.sh - Script to manage artifactory services.

Usage: .//opt/artifactory-jcr-7.98.15/app/bin/artifactory.sh <action>

action: start|stop|restart|status|check|run|help

Note : If no action is passed, the services will be run in foreground. 前台运行

启动服务:
./bin/artifactoryctl start
./bin/artifactoryctl check
./bin/artifactoryctl status

./bin/artifactoryctl run  //foreground