![]() ![]() 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: sudo chown -R nexus:nexus /opt/nexus 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 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. ![]() A non-root sudo useror access to the root user.SSH access to the server (or just open Terminal if you’re on a desktop).It’s recommended that you use a fresh OS install to prevent any potential issues.A server running one of the following operating systems: Ubuntu 20.04, 18.04, 16.04, and any other Debian-based distribution like Linux Mint.You can follow the same instructions for Ubuntu 18.04, 16.04, and any other Debian-based distribution like Linux Mint. I will show you the step-by-step installation of the Nexus Repository on Ubuntu 20.04 (Focal Fossa). ![]() The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘ sudo‘ to the commands to get root privileges. This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. It is a single source of all components, binaries, and build artifacts. It allows you to collect, and manage your dependencies and makes it easier to distribute your software. For those of you who didn’t know, Nexus Repository is an open-source repository that supports many artifact formats, including Docker, Java, Docker, Conan components, and more. In this tutorial, we will show you how to install Nexus Repository on Ubuntu 20.04 LTS. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |