# Start/Stop Nexus repository on Windows

In 
Published 2022-12-03

This tutorial explains to you how to start/stop Nexus repository on Windows.

In order to start Nexus repository, we need to go into the "bin" directory:

cd C:\MySOFT\nexus\nexus-3.45.1-01\bin

and after that we can start Nexus:

nexus /run

You will see something like this:

Ctrl+C will stop Nexus Repository.

Another way to manage Nexus is to create a Windows service.

This is done by the following command:

as Administrator
nexus.exe /install <optional-service-name>

nexus.exe /install will work as well and will create a "nexus" service in Windows.

In Task Manager/Services you can see "nexus" service:

You can click right on it and choose "Start". The service will start. After that you can click right on it and choose "Stop". The service will stop.

You can use also the following commands:

as Administrator
nexus.exe /start <optional-service-name>
nexus.exe /stop <optional-service-name>
nexus.exe /uninstall <optional-service-name>

When you start Nexus for the first time, you need to know:

  • The Repository is available at http://localhost:8081.

  • The default username is “admin”. The default password is located in the C:\MySOFT\nexus\sonatype-work\nexus3\admin.password file for my installation.