#
Start/Stop Nexus repository on Windows
This tutorial explains to you how to start/stop Nexus repository on Windows.
Assumptions:
- we have the installation from Nexus repository installation on Windows.
- nexus.exe is not in the "Path" environment variable.
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:
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:
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.