The following instructions are for installing Nexus Professional as a stand-alone server. Nexus Professional is bundled with a Jetty instance which listens to all configured IP addresses on a host (0.0.0.0) and runs on port 8081 by default.
Installing Nexus is straightforward, unpack the Nexus web application archive in a directory. If you are installing Nexus on a local workstation to give it a test run, you can install it in your home directory or wherever you like; Nexus doesn’t have any hard coded directories, it will run from any directory. If you downloaded the ZIP
$ unzip nexus-professional-webapp-1.9.2-bundle.zip
And, if you download the GZip’d TAR archive, run:
$ tar xvzf nexus-professional-webapp-1.9.2-bundle.tgz
If you are installing Nexus on a server, you might want to use a directory other than your home directory. On a Unix machine, this book assumes that Nexus is installed in /usr/local/nexus-professional-webapp-1.9.2 with a symbolic link /usr/local/nexus to the nexus directory. Using a symbolic link nexus to a directory which holds a specific version of Nexus is a common practice that makes it easier to upgrade to a newer version of Nexus.
$ sudo cp nexus-professional-webapp-1.9.2-bundle.tgz /usr/local $ cd /usr/local $ sudo tar xvzf nexus-professional-webapp-1.9.2-bundle.tgz $ ln -s nexus-professional-webapp-1.9.2 nexus
Although it isn’t required for Nexus to run, you may want to set an environment variable NEXUS_HOME in your environment which points to the installation directory of Nexus. This chapter will refer to this location as$NEXUS_HOME. The Nexus installation directory nexus-professional-webapp-1.9.2 has a sibling directory named sonatype-work. This directory contains all of the repository and configuration data for Nexus and is stored outside of the Nexus installation directory to make it easier to upgrade to a newer version of Nexus.