Find the Best Cosmetic Hospitals

Explore trusted cosmetic hospitals and make a confident choice for your transformation.

โ€œInvest in yourself โ€” your confidence is always worth it.โ€

Explore Cosmetic Hospitals

Start your journey today โ€” compare options in one place.

Jfrog Artifactory: Install Artifactory 7 with Postgresql

Hereโ€™s a clear, step-by-step command guide to install the latest JFrog Artifactory (7.117.7) on a Linux server with PostgreSQL as the external database. This walkthrough assumes Ubuntu/Debian, but the logic applies to RHEL/Rocky with minimal adjustments (swap apt for yum or dnf). Adapt commands as appropriate for your distribution.

1. System Preparation

$ sudo apt update && sudo apt upgrade -y$ apt install curl wget unzip gnupg2 openjdk-21-jdk -y
  • No need to set JAVA_HOME; Artifactory 7.104+ auto-detects the bundled JDK.

2. Install & Configure PostgreSQL

$ sudo apt install postgresql postgresql-contrib -y
$ sudo -u postgres psql-- inside postgres shell, run:CREATE DATABASE artifactory;CREATE USER artifactory WITH PASSWORD 'StrongPassword';GRANT ALL PRIVILEGES ON DATABASE artifactory TO artifactory;\q

Replace 'StrongPassword' with a secure password. For external DB access, allow it in pg_hba.conf.

If logged in as the postgres Linux user:
psql -d artifactory

-- Allow artifactory user to use the schema:
GRANT ALL ON SCHEMA public TO artifactory;

-- Optionally, transfer schema ownership (recommended for new/single-tenant DBs):
ALTER SCHEMA public OWNER TO artifactory;

-- Allow artifactory user to manipulate all tables, sequences, and functions now and in the future:
GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO artifactory;
GRANT ALL PRIVILEGES ON ALL SEQUENCES IN SCHEMA public TO artifactory;
GRANT ALL PRIVILEGES ON ALL FUNCTIONS IN SCHEMA public TO artifactory;

-- (Optional, ensures future objects auto-grant privileges)
ALTER DEFAULT PRIVILEGES IN SCHEMA public
  GRANT ALL ON TABLES TO artifactory;
ALTER DEFAULT PRIVILEGES IN SCHEMA public
  GRANT ALL ON SEQUENCES TO artifactory;
ALTER DEFAULT PRIVILEGES IN SCHEMA public
  GRANT ALL ON FUNCTIONS TO artifactory;
  
After running the above SQL, you can test as the artifactory user:
psql -h localhost -U artifactory -d artifactory

CREATE TABLE test_perm(id INT);
DROP TABLE test_perm;

3. Download Artifactory 7.117.7

bashexport JFROG_HOME=/opt/jfrog
sudo mkdir -p $JFROG_HOME && cd $JFROG_HOME
wget https://releases.jfrog.io/artifactory/artifactory-pro/org/artifactory/pro/jfrog-artifactory-pro-7.117.7-linux.tar.gz
tar -xvf jfrog-artifactory-pro-7.117.7-linux.tar.gz
mv artifactory-pro-7.117.7 artifactory

4. Configure Artifactory for PostgreSQL

bashcp $JFROG_HOME/artifactory/var/etc/system.full-template.yaml $JFROG_HOME/artifactory/var/etc/system.yaml
  • Edit $JFROG_HOME/artifactory/var/etc/system.yaml and ensure:
textshared:
  database:
    type: postgresql
    driver: org.postgresql.Driver
    url: "jdbc:postgresql://localhost:5432/artifactory"
    username: artifactory
    password: StrongPassword

Adjust hostname, username, and password as set above.

5. Download PostgreSQL JDBC Driver

$ wget -O $JFROG_HOME/artifactory/var/bootstrap/artifactory/tomcat/lib/postgresql.jar https://jdbc.postgresql.org/download/postgresql-42.7.3.jar

6. Start Artifactory

$ cd $JFROG_HOME/artifactory./app/bin/artifactoryctl start$ tail -f $JFROG_HOME/artifactory/var/log/console.log
  • Monitor logs to confirm successful startup.

7. Access the Artifactory Web UI

  • URL:
    http://<server_ip>:8082/
  • Steps:
    • Complete the setup wizard (set administrator password)
    • Upload your license
    • Configure first repository

Additional Production Recommendations

  • Run PostgreSQL and Artifactory on separate VMs for best performance.
  • Use SSD storage for both binaries and database.
  • Open firewalls for port 8082/tcp as needed.
  • Enable server backup and configure SSL before internet exposure.
  • Automate startup: Set up Artifactory as a systemd service for resilience.

You now have a modern, secure, and production-ready Artifactory 7.117.7 instance, integrated with PostgreSQL, on Linux!

Old method

Here is the complete step-by-step guide with commands to install JFrog Artifactory v7.117.7 on a Linux server with PostgreSQL as the database:


โœ… 1๏ธโƒฃ Prerequisites

  • Linux server (RHEL/CentOS 8+, Ubuntu 20.04+/Debian 10+)
  • Root or sudo access
  • Minimum 4 CPU cores, 8 GB RAM, 100 GB SSD

โœ… 2๏ธโƒฃ Install PostgreSQL

๐Ÿ”น On RHEL/CentOS:

sudo yum install -y postgresql-server postgresql-contrib
sudo postgresql-setup initdb
sudo systemctl enable postgresql
sudo systemctl start postgresql

๐Ÿ”น On Ubuntu/Debian:

sudo apt update
sudo apt install -y postgresql postgresql-contrib
sudo systemctl enable postgresql
sudo systemctl start postgresql

โœ… 3๏ธโƒฃ Configure PostgreSQL for Artifactory

sudo -u postgres psql

Inside the PostgreSQL shell, run:

CREATE DATABASE artifactory WITH ENCODING UTF8;
CREATE USER artifactory WITH PASSWORD 'StrongPassword123!';
GRANT ALL PRIVILEGES ON DATABASE artifactory TO artifactory;
\q
Code language: JavaScript (javascript)

โœ… 4๏ธโƒฃ Download Artifactory 7.117.7

๐Ÿ”น For RHEL/CentOS:

wget https://releases.jfrog.io/artifactory/artifactory-pro/rpm/jfrog-artifactory-pro-7.117.7.rpm
sudo yum install -y jfrog-artifactory-pro-7.117.7.rpm
Code language: JavaScript (javascript)

๐Ÿ”น For Ubuntu/Debian:

wget https://releases.jfrog.io/artifactory/artifactory-pro/deb/jfrog-artifactory-pro-7.117.7.deb
sudo apt install -y ./jfrog-artifactory-pro-7.117.7.deb
Code language: JavaScript (javascript)

โœ… 5๏ธโƒฃ Configure Artifactory to Use PostgreSQL

Edit the system.yaml file:

sudo vi /opt/jfrog/artifactory/var/etc/system.yaml
Code language: JavaScript (javascript)

Add the database configuration:

shared:
  database:
    type: postgresql
    driver: org.postgresql.Driver
    url: jdbc:postgresql://localhost:5432/artifactory
    username: artifactory
    password: StrongPassword123!
Code language: JavaScript (javascript)

Save and exit.


โœ… 6๏ธโƒฃ Start and Enable Artifactory

sudo systemctl enable artifactory
sudo systemctl start artifactory

Check if the service is running:

sudo systemctl status artifactory

โœ… 7๏ธโƒฃ Access Artifactory Web UI

Open a browser and go to:

http://<your-server-ip>:8082
Code language: JavaScript (javascript)
  • Default User: admin
  • Default Password: password (you will be asked to change it on first login).

โœ… 8๏ธโƒฃ Check Logs

tail -f /opt/jfrog/artifactory/var/log/console.log
Code language: JavaScript (javascript)

โœ… 9๏ธโƒฃ (Optional) Open Firewall Ports

sudo firewall-cmd --add-port=8082/tcp --permanent
sudo firewall-cmd --reload

โœ… Installation Summary

โœ” Install and configure PostgreSQL
โœ” Create database and user for Artifactory
โœ” Install Artifactory v7.117.7 package
โœ” Configure system.yaml with PostgreSQL connection
โœ” Start service and access via http://<server-ip>:8082


Bash Script to Install Artifactory

Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services โ€” all in one place.

Explore Hospitals
Iโ€™m a DevOps/SRE/DevSecOps/Cloud Expert passionate about sharing knowledge and experiences. I have worked at <a href="https://www.cotocus.com/">Cotocus</a>. I share tech blog at <a href="https://www.devopsschool.com/">DevOps School</a>, travel stories at <a href="https://www.holidaylandmark.com/">Holiday Landmark</a>, stock market tips at <a href="https://www.stocksmantra.in/">Stocks Mantra</a>, health and fitness guidance at <a href="https://www.mymedicplus.com/">My Medic Plus</a>, product reviews at <a href="https://www.truereviewnow.com/">TrueReviewNow</a> , and SEO strategies at <a href="https://www.wizbrand.com/">Wizbrand.</a> Do you want to learn <a href="https://www.quantumuting.com/">Quantum Computing</a>? <strong>Please find my social handles as below;</strong> <a href="https://www.rajeshkumar.xyz/">Rajesh Kumar Personal Website</a> <a href="https://www.youtube.com/TheDevOpsSchool">Rajesh Kumar at YOUTUBE</a> <a href="https://www.instagram.com/rajeshkumarin">Rajesh Kumar at INSTAGRAM</a> <a href="https://x.com/RajeshKumarIn">Rajesh Kumar at X</a> <a href="https://www.facebook.com/RajeshKumarLog">Rajesh Kumar at FACEBOOK</a> <a href="https://www.linkedin.com/in/rajeshkumarin/">Rajesh Kumar at LINKEDIN</a> <a href="https://www.wizbrand.com/rajeshkumar">Rajesh Kumar at WIZBRAND</a> <a href="https://www.rajeshkumar.xyz/dailylogs">Rajesh Kumar DailyLogs</a>

Related Posts

Artifactory: Comprehensive Troubleshooting Guide for JFrog Artifactory

Hereโ€™s a very comprehensive, up-to-date troubleshooting guide for JFrog Artifactory 7.x, covering the application, database, core components, all services, log files, and all the key troubleshooting commands.This…

Read More

Artifactory: Setting up Artifactory 7 High Availability Cluster

Here is a comprehensive, step-by-step guide to design, configure, and deploy JFrog Artifactory 7.x in High Availability (HA) modeโ€”including all architectural and configuration considerations required for a…

Read More

Artifactory: Guide to change Artifactory filestore to AWS EFS (Elastic File System)

Hereโ€™s a comprehensive, step-by-step tutorial for migrating or configuring JFrog Artifactory 7.117.7+ (self-hosted, Linux) to use AWS EFS (Elastic File System) as its filestore. This guide brings…

Read More

Artifacatory: Upload Artifacts to Artifactory using NPM with Node.js Project

Step-by-Step Guide: Create a Node.js Project with npm and Upload Artifacts to Artifactory 1. Install Prerequisites 2. Initialize a New Node.js Project 3. Develop Your Node.js Artifact…

Read More

Artifactory: using Gradle and Uploading Artifacts to Artifactory

Step-by-Step Guide: Creating a Java Project with Gradle and Uploading Artifacts to Artifactory 1. Install Prerequisites 2. Create a New Java Project Using Gradle Open your terminal…

Read More

Package Types Supported by Artifactory

Here is a short summary of each of the mentioned package types: Complete List of Package Types Supported by JFrog Artifactory JFrog Artifactory is recognized for its…

Read More
Subscribe
Notify of
guest
1 Comment
Newest
Oldest Most Voted
Inline Feedbacks
View all comments
Jason Mitchell
Jason Mitchell
1 month ago

Thanks for this detailed guide on installing JFrog Artifactory 7 with PostgreSQL! ๐Ÿ“ฆ The step-by-step instructions make it much easier to follow, especially for those setting it up for the first time. Very helpful โ€” appreciate you sharing this!

1
0
Would love your thoughts, please comment.x
()
x