How to customize Sonatype Nexus running port?

gibyalex picture gibyalex · Feb 13, 2017 · Viewed 8.8k times · Source

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.

Answer

DarthHater picture DarthHater · Feb 13, 2017

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 :)