Friday 11 June 2021

Nexus installation on linux

 Installation of sona type nexus on Linux server.

Sonatype Nexus System Requirements

  1. Minimum 1 VCPU & 2 GB Memory
  2. Server firewall opened for port 22 & 8081
  3. Java latest version 
  4. All Nexus processes should run as a non-root nexus user.


After login to the server 

step1: 

sudo yum update -y sudo yum install wget -y

Step2:

sudo yum install java-version-openjdk.x86_64 -y

Step3:

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

Step4:

sudo tar -xvf nexus.tar.gz
sudo mv nexus-3* nexus

Step5:

sudo adduser nexus

Step6:

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

Step7:

sudo vi /app/nexus/bin/nexus.rc
run_as_user="nexus"

Step8:

sudo chkconfig nexus on
sudo systemctl start nexus


Step9:

Open the ports 22 and 8081

Step10:

http://ipaddress:8081




1 comment: