Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to customize Sonatype Nexus running port?

Tags:

nexus

sonatype

I am using Sonatype Nexus OSS version 3.2. Can anyone guide me how to customize the port in which Nexus run ?

I am not able to find any config file to customize port and custom the context path?

Currently Nexus is running on http://<ServerName>:8081/ and I want it to change as http://<ServerName>:9001/nexus.

like image 780
gibyalex Avatar asked Feb 13 '17 18:02

gibyalex


People also ask

What is the default port for Nexus?

The default behavior of Nexus is to attempt to bind to port 8081 or 0.0. 0.0 (or every available interface). If you want to change the port or the host, you will need to modify the file in NEXUS_HOME/conf/nexus.

How do I run nexus Sonatype?

To use the user interface, fire up a web browser and type in the URL http://localhost:8081/nexus . You should see the user interface as displayed in Figure 3.5, “Application Window”. While we use localhost throughout this book, you may need to use the IP Loopback Address of 127.0.

How do I add artifacts to Sonatype nexus?

To upload a pom file and its associated artifacts add all the files into the upload screen at the same time. Be sure to specify the extension of the pom file as pom ; this will let Nexus Repository know it should be taking the coordinates from the pom file, not the UI.

Can Nexus 2 be migrated to Nexus 3 True or false?

Yes it supports this.


1 Answers

You need to edit nexus.properties in sonatype-work/nexus3/etc/, specifically the application port. Set this to 9001, restart Nexus Repository and enjoy the ride :)

like image 174
DarthHater Avatar answered Dec 23 '22 11:12

DarthHater