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
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
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.
you can also configure that service is running by checking in services, find Nexus-Repository-Service is running.
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.
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.
Now you can manage the repositories
The html view of the repository would be like this:
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:
- Go to the Configuration tab on the main menu.
- SeĀlect System from the dropdown and navigateĀ to the proxy settings section.
- SeĀt up the proxy server deĀtails here if you are beĀhind one.
2. To create neĀw repositories:
- Go to the ReĀpositories tab at the top.
- Then seĀlect Hosted RepositorieĀs under it.
- Click on Create a HosteĀd Repository to provide the reĀpository name, ID and a description.
- Choose theĀ type like Maven 2, DockeĀr or NPM etc. Customize additional options like storageĀ location, whether to enableĀ indexing, permissions and more to seĀt up the new repository as neĀeded.
- Click createĀ to save the freshly madeĀ repository.
3. Manage Access Control and Security:
- Click on the Security tab on the top menu.
- Select User Management from the drop-down menu.
- You can add new users, manage existing ones, and set permissions for different operations like repository browsing, uploading, and deleting.
- To create a new user, click on the Create User button, fill in the required details, and set permissions accordingly.
4. Configure Proxy Repositories :
- depending on your selected proxy type Select Maven or NPM from the drop down menu.
- the Create Proxy button will be seen click on it.
- Now, input the necessary details for the external repository you wish to set as a proxy, including its ID, name, and URL.
- Lastly, configure additional settings such as proxy policies, content filters, and access permissions to tailor your proxy repository according to your needs.
5. Indexing and Searching Setup:
- Click on the top menuās Indexing tab.
- Select the indexing type to configure i.e., Docker, Maven, NPM among others.
- According to your preferences, create rules for customization ranging from enabling/ disabling indexation up to setting schedules and rules of indexing.
6. Personalize User Interface:
- On the top menu select Configuration tab,
- Thereafter choose General from the list box
- The look and feel of Nexus Repository Manager UI can be customized by altering themes or applying some behaviors in order to change its URL scheme.
7. Backup and Restore:
- Periodically, back up your Nexus Repository Manager configuration and repository data to ensure their safety.
- Go to the Backup tab at the top menu bar,
- You can save a backup file by clicking on Create Backup.
- Then you click on restore from backup button select back-up file.
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:
- Centralization: Itās one place for all your software elements and build artifacts, getting rid of multiple storage locations and enhancing visibility.
- Caching: It lifts build speed and reliability by caching distant repositories, which reduces download periods and lessens network load.
- Package Type Support: It covers a wide range of package types and formats, meeting varying development demands.
- Scalability: It can be installed on any number of servers, for countless users and adjusts to the needs and size of your organization.
Contact Us