Install the following prerequisites independently of the Distribution archive installation. Make sure to install them before starting your Xray service.
PostgreSQL
Redis
For more information, see Third Party Applications for Distribution.
From Distribution 2.5.x, you need to first install PostgreSQL separately as the PostgreSQL binaries are no longer bundled with the Linux archive installer for Distribution.
Before you proceed, see System Requirements for information on supported platforms, supported browsers, and other requirements.
Follow these steps to install the product:
Extract the contents of the compressed archive and move it into distribution directory.
tar -xvf jfrog-distribution-<version>-linux.tar.gz mv jfrog-distribution-<version>-linux distribution
Note
PostgreSQL is required and must be installed before continuing with the next installation steps.
Set your PostgreSQL connection details in the Shared Configurations section of the
$JFROG_HOME/distribution/var/etc/system.yaml
file.Start PostgreSQL.
Customize the product configuration.
Set the Artifactory connection details.
Customize the PostgreSQL Database connection details. (optional)
Set any additional configurations (for example: ports, node id) using the Distribution
system.yam
l configuration file.
Start and manage the Distribution service as the user who extracted the tar.
As a process
distribution/app/bin/distribution.sh start
Manage the process.
distribution/app/bin/distribution.sh start|stop|status|restart
As a service
Distribution is packaged as an archive file and an install script that can be used to install it as a service running under a custom user. Currently supported on Linux systems.
OS User Permissions
When running Distribution as a service, the installation script creates a user called
distribution
(by default)which must have run and execute permissions on the installation directory.It is recommended to extract the Distribution download file into a directory that gives run and execute permissions to all users such as
/opt
.To install Distribution as a service, execute the following command as root:
Note
User and group can be passed through
distribution/var/etc/system.yaml
asshared.user
andshared.group
. This takes precedence over values passed through the command line on install.distribution/app/bin/installService.sh --user <enter user, default value is distribution> --group <enter group, default value is distribution> -u | --user : [optional] (default: distribution) user which will be used to run the product, it will be created if its unavailable-g | --group : [optional] (default: distribution) group which will be used to run the product, it will be created if its unavailable
The user and group is stored in
distribution/var/etc/system.yaml
at the end of installation.To manage the service, use
systemd
orinit.d
commands depending on your system.Using systemd
systemctl <start|stop|status> distribution.service
Using init.d
service distribution <start|stop|status>
Access Distribution from your browser at:
http://<jfrogUrl>/ui/
.Go to theDashboard tab in theApplicationmodule in the UI.
Check the Distribution Log.
tail -f distribution/var/log/console.log
Configure log rotation of the console log
The
console.log
file can grow quickly since all services write to it. For more information, see configure the log rotation.
Third Party Applications for Distribution
PostgreSQL for Distribution
You must install PostgreSQL before you proceed with the installation of Distribution.
PostgreSQL for Linux Archive
PostgreSQL binaries are no longer bundled with Linux archive installer. You need to install PostgreSQL manually.
Run the following commands to seed the tables and schema needed by Distribution.
<pgsql bin path>/psql template1 <postgres prompt>: CREATE DATABASE <user_name>; <postgres prompt>: \q ## run the script to seed the tables and schemas needed by Distribution POSTGRES_PATH=<pgsql bin path> distribution/app/third-party/postgresql/createPostgresUsers.sh
Redis for Distribution
Redis Password Restrictions
Redis password should contain only alphanumeric characters and should not contain any special characters.
Redis Linux Archive Installation
Redis binaries are available in jfrog-distribution-<version>-linux/app/third-party/redis/bin
. You must setup the Redis server before you install Distribution.