Accessing Nexus Repository Web Interface. Save and close the file then start the Nexus service and enable it to start at system reboot: sudo systemctl daemon-reload Now we create a systemd service file to manage the Nexus service: sudo nano /etc/systemd/system/rvice Djava.io.tmpdir=./sonatype-work/nexus3/tmp XX:LogFile=./sonatype-work/nexus3/log/jvm.log To run nexus as a service at boot time, open /opt/nexus/bin/nexus.rc file, uncomment it, and add nexus user: sudo nano /opt/nexus/bin/nexus.rcĪdd the following line: run_as_user="nexus"Īfter that, edit the nexus.vmoptions configuration file and define max memory size: nano /opt/nexus/bin/nexus.vmoptions Sudo chown -R nexus:nexus /opt/sonatype-work ![]() Next, give permission to nexus files and nexus directory to Nexus user: Then, rename the extracted Nexus setup folder to Nexus: sudo mv /opt/nexus-3.30.1-01 /opt/nexus Now we download the latest Nexus Repository Manager Setup from the official page: sudo wget Installing Nexus Repository on Ubuntu 20.04. Now create a separate user to run Nexus: useradd -M -d /opt/nexus -s /bin/bash -r nexusĮcho "nexus ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/nexus Once Java is installed, you can verify the installed version of Java with the following command: java -version Run the following command to install Java to your system: sudo apt install openjdk-8-jre-headless Nexus repository manager requires Java Runtime Environment. First, make sure that all your system packages are up-to-date by running the following apt commands in the terminal. Install Nexus Repository on Ubuntu 20.04 LTS Focal Fossa We recommend acting as a non-root sudo user, however, as you can harm your system if you’re not careful when acting as the root. ![]()
0 Comments
Leave a Reply. |