NEXUS

alixan
1 min readApr 6, 2022

--

Nexus Repository OSS is an open source repository that supports many artifact formats, including Docker, Java™, and npm.

Go see the full list here

Sonatype Nexus System Requirements:

  1. Minimum 1 VCPU & 2 GB Memory
  2. port 8081
  3. OpenJDK 8
  4. non-root user.

Install OpenJDK

apt install openjdk-8-jre-headless

Download the latest nexus.

wget -O nexus.tar.gz https://download.sonatype.com/nexus/3/latest-unix.tar.gz

As a good security practice, it is not advised to run nexus service with root privileges. So create a new user named nexus to run the nexus service.

sudo adduser nexus

Change the ownership of nexus files and nexus data directory to nexus user.

sudo chown -R nexus:nexus nexus 
sudo chown -R nexus:nexus sonatype-work

Let’s change the file so that the user can run the nexus

vim nexus-3.38.1–01/bin/nexus.rc

# remove this icon and type user

To start the Nexus service, use the following command.

/opt/nexus-3.38.1–01/bin/nexus start

Open your web browser and go to the ip of the server.

http://ip:8081

--

--