Repository Management with Nexus
Repository Management with Nexus

3.4. Running Nexus

When you start Nexus, you are starting a web server on the default port of 0.0.0.0:8081. Nexus runs within a servlet container called Jetty and it is started with a native service wrapper called the Tanuki Java Service Wrapper. This service wrapper can be configured to run Nexus as a Windows service or a Unix daemon. To start Nexus, you will need to find the appropriate startup script for your platform. To see the list of available platforms, list the contents of the $NEXUS_HOME/bin/jsw

The following example listing starts Nexus using the script for Mac OSX. First we list the contents of the $NEXUS_HOME/bin/jsw to show you the available platforms, then we make the contents of the bin directory executable with chmod. The Mac OS X wrapper is started with a call to nexus start, and then we tail the wrapper.log in $NEXUS_HOME/logs. Nexus will initialize itself and print a message stating what IP address and port it is listening on.

$ cd /usr/local/nexus
$ ls ./bin/jsw/
conf/                linux-x86-64/        solaris-x86-32/
lib/                 macosx-universal-32/ windows-x86-32/
license/             macosx-universal-64/ windows-x86-64/
linux-ppc-64/        solaris-sparc-32/
linux-x86-32/        solaris-sparc-64/
$ chmod -R a+x bin
$ ./bin/jsw/macosx-universal-64/nexus start
Starting Nexus Repository Manager...
Started Nexus Repository Manager.
$ tail -f logs/wrapper.log
INFO  ... [ServletContainer:default] - SelectChannelConnector@0.0.0.0:8081

At this point, Nexus will be running and listening on all IP addresses (0.0.0.0) that are configured for the current host on port 8081. To use Nexus, fire up a web browser and type in the URL: http://localhost:8081/nexus

While we use "localhost" throughout this book, you may need to use the IP Loopback Address of "127.0.0.1" or the IP address assigned to the machine running Nexus. Click on the "Log In" link in the upper right-hand corner of the web page, and you should see the login dialog. THE DEFAULT NEXUS USERNAME AND PASSWORD IS "admin" AND "admin123".

figs/web/installation_default-admin.png

Figure 3.3. Default Nexus Administrative Credentials (admin/admin123)


figs/web/repository-manager_nexus-login.png

Figure 3.4. Nexus Application Window (default login/password is admin/admin123)


Sonatype Promotion Subscribe via RSS