
Djava.io.tmpdir=./sonatype-work/nexus3/tmp #4: Run Nexus as a service using Systemd XX:LogFile=./sonatype-work/nexus3/log/jvm.log

In the below settings, the directory is changed from. To Increase the nexus JVM heap size, open the /opt/nexus/bin/nexus.vmoptions file, you can modify the size as shown below To run nexus as service at boot time, open /opt/nexus/bin/nexus.rc file, uncomment it and add nexus user as shown below sudo nano /opt/nexus/bin/nexus.rc run_as_user="nexus" Give permission to nexus files and nexus directory to nexus user sudo chown -R nexus:nexus /opt/nexus sudo chown -R nexus:nexus /opt/sonatype-work To set no password for nexus user open the visudo file in ubuntu sudo visudoĪdd below line into it, save and exit nexus ALL=(ALL) NOPASSWD: ALL Rename the extracted Nexus setup folder to nexus sudo mv /opt/nexus-3.30.1-01 /opt/nexusĪs security practice, not to run nexus service using root user, so lets create new user named nexus to run nexus service sudo adduser nexus Update the system packages sudo apt-get update #1: Install OpenJDK 1.8 on Ubuntu 20.04 LTS sudo apt install openjdk-8-jre-headless #2: Download Nexus Repository Manager setup on Ubuntu 20.04 LTSĭownload the latest Nexus Repository Manager Setup from official nexus page.ĭownload the SonaType Nexus on Ubuntu using wget sudo wget #3: Install Nexus Repository on Ubuntu 20.04 LTSĮxtract the Nexus repository setup in /opt directory tar -zxvf You can go through Nexus artifactory official page to know more about system requirement for Nexus.

So now if we assume what if we don’t use artifacts…It will be really very difficult over time.hat is why Artifacts are important to hold onto throughout the development process and also after that. In CI/CD process when we build our project we obtain an artifactory after a build.So further in deployment phase we deploy these artifactories on our production / pre-production server. #5: Access Nexus Repository Web Interface.#4: Run Nexus as a service using Systemd.#3: Install Nexus Repository on Ubuntu 20.04 LTS.

#2: Download Nexus Repository Manager setup on Ubuntu 20.04 LTS.#1: Install OpenJDK 1.8 on Ubuntu 20.04 LTS.
