Open In App

Step-By-Step Guide To Installing Nexus Repository Manager

Sonatype’s Nexus Repository Manager is a favorite choice for handling binary artifacts and software parts. This tool’s role is to be a hub, and it offers various critical features:

The minimum system requirements for Nexus Repository Manager

  1. Operating System: Windows, Linux, and MacOS1 can run the Nexus Repository Manager
  2. CPUs: Minimum CPUs: 4, Recommended CPUs: 8
  3. RAM: Minimum physical RAM on the host: 8GB (for small profile)
  4. Disk Space: Varies depending on usage, but at least enough space to accommodate your repositories and the Nexus software itself.
  5. Web Browser: Modern web browser supporting HTML5 and JavaScript

Understanding Nexus Repository Manager: Key Components, Features, and Concepts

Installing Nexus Repository Manager on Windows

Step 1: Choose the operating system

First, decide which operating system you will be installing Nexus Repository Manager on. Common options include Linux (Ubuntu, CentOS, or Red Hat Enterprise Linux) and Windows. Additionally, choose the package format you prefer, such as a Debian package ‘.deb for Linux or an installer package for Windows.



As now we chose windows operating system.

Step 2: Download and install Java Runtime Environment (JRE)

Nexus Repository Manager requires Java 8 or later. Before installing Nexus, verify that you have Java installed on your system. If not, download and install Java from Oracle’s official website (https://www.oracle.com/java/technologies/javase-downloads.html).



Step 3: Download the package

On the Sonatype downloads page, find the download link for the Windows Installer package. Click the link to start the download process.

Step 4: Extract the package

Extract the package and find the place where the .exe file is present. for example if you extracted it in downloads folder the path would be like

C:\Users\sagar\Downloads\nexus-3.66.0-02-win64\nexus-3.66.0-02\bin

finding nexus.exe file path

Step 5: Install Nexus Repository Service

Open start menu and search for command prompt and run command prompt as administrator. Now move to that directory where nexus.exe was extracted

> cd C:\Users\sagar\Downloads\nexus-3.66.0-02-win64\nexus-3.66.0-02\bin

after coming to that directory install nexus service repository by typing this

> nexus.exe /install Nexus-Repository-Service

after executing this you will get confirmation that its installed

Install service

Step 6: Start the service

After installing the ‘Nexus-Repository-Service’ start the service by executing the code

> nexus.exe /start Nexus-Repository-Service

after that you will see the output as Starting service as below.

Starting service

you can also configure that service is running by checking in services, find Nexus-Repository-Service is running.

Checking Service Status

Step 7: Access the Web Interface:

Once the server starts, you can access the web interface by opening a web browser and navigating to the following URL: http://localhost:8081/. You should see the Nexus Repository Manager Home page.

Nexus Repository Home page

Click on Sign in the top right corner. and enter username as admin and password you can find in the folder the page is showing as given in below fig browse to that path in that file you will get the password. After login you will be asked to set your own password.

Sign in

Now you can manage the repositories

The html view of the repository would be like this:

HTML view of Nexus Repository

Now you can proceed with the post-installation configuration, such as creating new repositories, managing proxy settings, and setting up security. Refer to the Nexus Repository Manager documentation for detailed instructions on these tasks.

Service Management:

If you want to manage Nexus as a Windows service, you can use the nexus.exe executable with additional commands:

/start: Start the Nexus service.
/stop: Stop the Nexus service.
/restart: Restart the Nexus service.
/force-reload: Force a reload of the Nexus service.
/status: Check the status of the Nexus service.

After installing Ne­xus Repository Manager, you nee­d to tweak the serve­r according to your needs. Plus, add repositorie­s and manage security with access control. Follow the­se steps for after-installation tasks:

1. To configure proxy se­ttings:

2. To create ne­w repositories:

3. Manage Access Control and Security:

4. Configure Proxy Repositories :

5. Indexing and Searching Setup:

6. Personalize User Interface:

7. Backup and Restore:

Conclusion:

Setting up Ne­xus Repository Manager on a Windows system is simple­. First, get your system ready. Ne­xt, save some disk space. The­n follow after-setup steps. The­se steps include using the­ web interface and se­tting up proxy settings. You’ll also create and manage­ repositories. Plus, you’ll work on security and acce­ss control. Setting up indexing and searching is anothe­r task. Customizing the user interface­ and often backing up and restoring data are also ke­y steps. If you do all this right, Nexus Repository Manage­r can help manage and distribute package­s in your workplace or developme­nt space.

Also, don’t forget to kee­p Nexus Repository Manager update­d. This ensures that you enjoy the­ best security patches and fe­atures.

Step-by-step guide to installing Nexus Repository Manager -FAQ’s

How to install sonatype Nexus repository Manager?

To install Sonatype Nexus Repository Manager, download the installation package from the official website, extract it, and run the appropriate script for your operating system. Access the Nexus UI through the browser and complete the setup.

What is Nexus repository Manager?

Nexus Repository Manager is a repository manager used for storing and managing software components. It facilitates the organization, retrieval, and distribution of artifacts, enhancing the efficiency of software development and dependency management.


Article Tags :