Install Nexus on Raspberry Pi (Raspbian)

  1. On the raspberry pi download and extract the Nexus repository OSS tar file to your home directory (e.g. /home/pi)
  2. In the Nexus bin folder (e.g. cd ~/nexus-3.0.0-03/bin) open nexus.vmoptions in a text editor and edit -Xms and -Xmx to both have a value of 128M (this avoids an out of memory error when running)
  3. Open the bin directory in a terminal window and run ./nexus run (This will take some time to run. Wait for the log message Started Sonatype Nexus OSS 3.0.0-03)
  4. App can be accessed on port 8081 (e.g. or http://localhost:8081)
- Default login is admin / admin123
- Default port can be changed in /etc/ 
under the installation directory 
(e.g. sudo nano ~/nexus-3.0.0-03/etc/

Nexus as a service

  1. Add NEXUS_HOME to .bashrc file in home directory (e.g. export NEXUS_HOME=’/home/pi/nexus-3.0.0-03′)
  2. Open the Nexus bin folder in a terminal window
  3. Edit nexus.rc file to uncomment run_as_user and add the value pi
  4. Run sudo ln -s $NEXUS_HOME/bin/nexus /etc/init.d/nexus
  5. Run cd /etc/init.d
  6. Run sudo update-rc.d nexus defaults
  7. Run sudo service nexus start