Skip to content

Instantly share code, notes, and snippets.

@diegopacheco
Last active October 20, 2022 13:05
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 19 You must be signed in to fork a gist
  • Save diegopacheco/0d6dcb6771166a87d5eb to your computer and use it in GitHub Desktop.
Save diegopacheco/0d6dcb6771166a87d5eb to your computer and use it in GitHub Desktop.
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
Copy link

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

@darci
Copy link

darci 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