Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
How to Install Nexus on Ubuntu?

Download and Install Nexus

sudo wget http://www.sonatype.org/downloads/nexus-latest-bundle.zip
sudo chmod 777 nexus-2.11.4-01-bundle.zip
sudo unzip nexus-2.11.4-01-bundle.zip
cd nexus-2.11.4-01/bin
sudo RUN_AS_USER=root ./nexus start

Config nexus on Maven

sudo vim $M2_HOME/conf/settings.xml
    <server>
      <id>nexus</id>
      <username>admin</username>
      <password>admin123</password>
    </server>

Goto: http://127.0.0.1:8081/nexus/#welcome

@Yonnatan

This comment has been minimized.

Copy link

commented Apr 16, 2018

Even sonatype are strongly recommend against running Nexus with root user .

@darci

This comment has been minimized.

Copy link

commented Apr 22, 2018

https://books.sonatype.com/nexus-book/3.0/reference/install.html

We recommend to avoid running the repository manager as the root user or a similar privileged user, as this practice poses serious, unnecessary security risks to the host operating system. Instead we suggest to follow system administration best practice and use a service specific user with the minimum required access rights only.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.