Before you proceed with the installation, review the system requirements.
The Debian installation bundles Xray and all its dependencies. It is provided as native Debian packages, where Xray and its dependencies must be installed separately. Use this, if you are automating installations.
Follow these steps to install the product:
Extract the contents of the compressed archive, and go to the extracted folder.
Install PostgreSQL.
You can choose to install any compatible PostgreSQL version, or use the PostgreSQL RPM bundled with the Xray installer located under
/third-party/postgresql
.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/xray/etc/system.yaml
file.Install db-util.
You can use the bundled db-utils found under
/third-party/misc/
.db-util allows Xray to interact with the Berkley DB that contains information about RPM-based Docker images. This way, Xray can index OS packages for these images.
dpkg -i ./third-party/misc/db5.<version>.deb dpkg -i ./third-party/misc/db-util_<version>.deb
Install RabbitMQ dependencies.
ubuntu 20.04 (focal)
dpkg -i ./third-party/rabbitmq/socat_<version>.deb dpkg -i ./third-party/rabbitmq/esl-erlang_<version>.deb
ubuntu 22.04 (jammy)
dpkg -i ./third-party/rabbitmq/esl-erlang_<version>.deb
Debian 10 (buster)
dpkg -i ./third-party/rabbitmq/socat_<version>.deb dpkg -i ./third-party/rabbitmq/esl-erlang_<version>.deb
Debian 11 (bullseye)
dpkg -i ./third-party/rabbitmq/socat_<version>.deb dpkg -i ./third-party/rabbitmq/esl-erlang_<version>.deb
Note
Run the following commands if you have any issues running the above commands to install the dependencies. These will include any missing dependencies from your system.
Install any missing dependencies
apt-get update apt-get install -f -y apt-get update
Install Xray.
You must run as a root user.
dpkg -i ./xray/xray.deb
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 Xray System.yaml configuration file.
Warning
Verify that a large file handle limitis specified before you start Xray.
Start and manage the Xray service.
systemd OS
systemctl start|stop xray.service
systemv OS
service xray start|stop|status|restart
Access Xray from your browser at:
http://<jfrogUrl>/ui/:port
.Go to the Xray Security & Compliance tab in the Administration module in the UI.
Check Xray Log.
tail -f $JFROG_HOME/xray/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.